[Bug 1457957] Re: puppet uses upstart for service status checks in vivid
Martin Pitt
martin.pitt at ubuntu.com
Tue May 26 12:14:16 UTC 2015
> Instead, one has to pay attention to which init system is active (I'm
not sure what the "official" way is to do that, but we can find that
out).
Right. Checking files is *never* correct, as both in upstart and in
systemd you can always override them (e. g. /etc/init/*.override or a
file in /etc/systemd/system/ or /run/systemd/system/ overrides a file in
/lib/systemd/system).
> Or perhaps puppet should exclusively be using the "service" wrapper
now
That is the correct thing to do. service works under SysV, upstart, and
systemd. The only thing to keep in mind is that "service status foo"
always exits with 0 under upstart even if a service isn't running.
Arguably this really ought to be fixed, so if you need that
functionality let's fix that properly instead of working around it.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1457957
Title:
puppet uses upstart for service status checks in vivid
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1457957/+subscriptions
More information about the Ubuntu-server-bugs
mailing list