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

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to