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

HAT hat at fa2.so-net.ne.jp
Wed Oct 5 03:13:35 PDT 2011


> well but this is mostly solveable with
> 
> /lib/systemd/system/netatalk-afpd.service
> /lib/systemd/system/netatalk-cnid.service
> /lib/systemd/system/netatalk-atalk.service
> 
>> If using AppleTalk, afpd must wait for starting atalkd.
>> If not use AppleTalk afpd must not wait for starting atalkd
> 
> Define "After=netatalk-cnid.service netatalk-atalk.service"
> for "netatalk-afpd.service", this is not a hard requirement
> and would provide the right order IF "atalk" is active

In case of this difinition, afpd is not started if atalkd does not exist.
Is my guess wrong?

> so for most of the things "Before=" and "After=" would be enough
> and the configurations should be done via "EnvironmentFile" and
> /etc/systemconfig-Files for settings this variables

"EnvironmentFile" does not appear in systemd.service(5).
What is /etc/systemconfig-Files?
What document should I read?

> so we would cleanup/simplify the whole thing and add the ability
> to restart daemons automatically via systemd if they are crashing
> and of course if i have a machine withe the only purpose provide
> fileservices via netatalk/samba and one of the processes are
> crashing for whatever reason they should be restarted before the
> users are calling me :-)

-- 
HAT


More information about the systemd-devel mailing list