[systemd-devel] a problem about the order of service shudown in systeamd

Reindl Harald h.reindl at thelounge.net
Fri Sep 18 01:44:29 PDT 2015



Am 18.09.2015 um 10:34 schrieb lucien xin:
>> Just order teamd before network.target
>
> sorry, I cannot follow you.

After=network.target

> I mean, now my A.service is shutdown before network.target.
> but I also wnat A.service to be shutdown before teamd,
> define "After=teamd at team0.service teamd at team1.service...."
> in A.service can work, but I hope there is another way,
>
> like there may be another option can make A.service's shutdown
> 'level' earlier than both teamd and network.target's shutdown 'level'
>
> i do not know, just ask

services are stopped in the reverse order they are started and so with 
After= and Before= you just need to adjust the order you want

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150918/9f8d7c60/attachment.sig>


More information about the systemd-devel mailing list