17 Apr
2012
17 Apr
'12
9:57 p.m.
On Tue, Apr 17, 2012 at 23:48, Tom Gundersen <teg@jklm.no> wrote:
On Tue, Apr 17, 2012 at 11:06 PM, Jouke Witteveen <j.witteveen@gmail.com> wrote:
-EnvironmentFile=/etc/conf.d/netcfg 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?
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.
Ah right.
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.
Agreed. It does so already.