for most users B but if i say "systemctl stop netatalk.service" for whatever reason (dbd -r e as example) cnid is running
so you have to stop both manually if you start netatalk.service after that it will not start the cnid-daemen until now i found no suiteable way except my A version to make sure that i can start and stop netatalk full funtionally with one command Am 01.11.2011 16:08, schrieb HAT: > Which is more suitable between A) and B) ? > > A) > [Unit] > Description=XXX > [Service] > Type=forking > GuessMainPID=no > ExecStartPre=/bin/systemctl start netatalk-cnid.service > ExecStart=/usr/sbin/afpd > ExecStopPost=/bin/systemctl stop netatalk-cnid.service > Restart=always > RestartSec=1 > [Install] > WantedBy=multi-user.target > > > B) > [Unit] > Description=XXX > After=netatalk-cnid.service > [Service] > Type=forking > GuessMainPID=no > ExecStart=/usr/sbin/afpd > Restart=always > RestartSec=1 > > [Install] > WantedBy=multi-user.target
signature.asc
Description: OpenPGP digital signature
_______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
