[systemd-devel] [Netatalk-admins] Restart=always and "ExecStartPre" (netatalk)
HAT
hat at fa2.so-net.ne.jp
Wed Nov 2 09:58:51 PDT 2011
From: Reindl Harald <h.reindl at thelounge.net>, Wed, 02 Nov 2011 17:27:19 +0100
> Am 02.11.2011 17:20, schrieb HAT:
>>>> # systemctl start netatalk-cnid_metad.service netatalk-afpd.service
>>>
>>> yes, please go this way for the public packages to get them
>>> work in a clean way with systemd, i will overwrite in /etc/systemd
>>> because i don't like have to think about both services
>>
>> hmm, there is still a problem.
>>
>> # systemctl stop netatalk-cnid_metad.service netatalk-afpd.service
>>
>> log:
>> Nov 03 00:59:11.821662 cnid_metad[2692] {cnid_metad.c:135} (I:AFPDaemon): shutting down on signal 15
>> Nov 03 00:59:11.822062 afpd[2693] {main.c:148} (N:AFPDaemon): AFP Server shutting down on SIGTERM
>>
>>
>> cnid_metad stops before afpd.
>> starting order is controllable by "After=".
>> How is stopping order controlled?
>
> well that is why i would love my version start/stop cnid with
> "netatalk.service" and replace both ExecStartPre/ExecStopPost with
> a script which invokes both commands only if cnid is configured
>
> ExecStartPre=/bin/systemctl start netatalk-cnid.service
> ExecStopPost=/bin/systemctl stop netatalk-cnid.service
cnid_metad is not indispensable for afpd.
Therefore this way cannot be used.
Can't systemd control stopping order?
--
HAT
More information about the systemd-devel
mailing list