[systemd-devel] Restart=always and "ExecStartPre" (netatalk)
Michal Schmidt
mschmidt at redhat.com
Wed Sep 28 15:16:38 PDT 2011
On Wed, 28 Sep 2011 23:01:46 +0200 Reindl Harald wrote:
> thank you for your reply
>
> first i tried two services (netatalk.service + netatalk-cnid.service)
> but for whatever reason /usr/sbin/cnid_metad will be started with
> a correct zero-return-value but the process is closed, tried
> preforking/simple
See if 'GuessMainPID=no' works around it.
> the other "problem" is that i want take away complexity for
> start/restart at the user/admin-level there should be only used
> "netatalk.service" this works fine with Requires= for the first
> start, but not when stop netatalk.service in a way that
> netatalk-cnid.service is stopped also
Would using BindTo or StopWhenUnneeded help you? See 'man systemd.unit'.
More information about the systemd-devel
mailing list