[arch-projects] [netcfg][PATCH 2/2] systemd: wait for network to come up
teg at jklm.no
Tue Apr 17 17:48:26 EDT 2012
On Tue, Apr 17, 2012 at 11:06 PM, Jouke Witteveen <j.witteveen at gmail.com> wrote:
>> ExecStart=/usr/bin/netcfg-daemon start
>> ExecStop=/usr/bin/netcfg-daemon stop
> This service should not be started when the env file is missing, so
> including it makes sense, doesn't it?
The meaning of EnvironmentFile is that it will be imported into the
service file and you can then use the varibles in it. But since you
don't use any variables in this service file it does not make much
If what you want is to avoid a service being started if a file does
not exist, then ConditionPathExists= is the correct thing to use.
However, I don't really see the point of that here. netcfg-daemon
should check for the configfile and if it is missing or illegal then
the daemon should exit with an error code, imo.
More information about the arch-projects