[systemd-devel] Binary launched in ExecStartPre gets killed...
h.reindl at thelounge.net
Mon Mar 4 07:33:45 PST 2013
Am 04.03.2013 16:25, schrieb Belal:
> So how do i write such a service i.e. when A starts B should be started first and when A is stopped B should be stopped as well. I am really new to this so any pointers here would be really helpful. I understand that this is a very basic question but I am very new to this...
make a own service
[root at fileserver:~]$ cat /etc/systemd/system/netatalk.service
ExecStartPre=/bin/systemctl start netatalk-cnid.service
ExecStart=/usr/sbin/afpd -P /var/run/netatalk.pid -F /etc/netatalk/afpd.conf -U uams_dhx.so,uams_dhx2.so -g nobody
-c 100 -nozeroconf
ExecStopPost=/bin/systemctl stop netatalk-cnid.service
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 263 bytes
Desc: OpenPGP digital signature
More information about the systemd-devel