[systemd-devel] [Netatalk-admins] Restart=always and "ExecStartPre" (netatalk)

Reindl Harald h.reindl at thelounge.net
Wed Nov 2 10:41:03 PDT 2011



Am 02.11.2011 17:58, schrieb HAT:
> 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

did you read my reply?

what in "replace both ExecStartPre/ExecStopPost with a script which invokes
both commands only if cnid is configured" was unclear?



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


More information about the systemd-devel mailing list