On Tue, Apr 17, 2012 at 23:48, Tom Gundersen <[email protected]> wrote: > On Tue, Apr 17, 2012 at 11:06 PM, Jouke Witteveen <[email protected]> > 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.
