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

Andrei Borzenkov arvidjaar at gmail.com
Fri Sep 18 01:54:31 PDT 2015


On Fri, Sep 18, 2015 at 11:44 AM, Reindl Harald <h.reindl at thelounge.net> wrote:
>
>
> Am 18.09.2015 um 10:34 schrieb lucien xin:
>>>
>>> Just order teamd before network.target
>>
>>
>> sorry, I cannot follow you.
>
>
> After=network.target
>

Actually I meant that teamd should have

Before=network.target

Then anything ordered after network.target will be stopped early enough.

>> 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
>
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>


More information about the systemd-devel mailing list