[systemd-devel] contingent After

Michal Schmidt mschmidt at redhat.com
Mon Nov 7 02:25:10 PST 2011


On 11/05/2011 06:09 PM, Michael D. Berger wrote:
> Thanks to the help provided by members of the list,
> myDaemon is now functioning correctly under systemd.
>
> Now for myUpperDaemon:
>
> IF myDaemon is enabled; then
>     myUpperDaemon must start after myDaemon
> ELSE
>     myUpperDaemon must start anyway
> ENDIF

This exactly what "After=myDaemon.service" is for. Realize that in 
systemd you can express requirement dependencies (Wants, Requires, ...) 
completely independently of ordering dependencies (Before, After).
The situation you described is a case of an ordering dependency, without 
a requirement dependency.

Michal


More information about the systemd-devel mailing list