[Pkg-salt-team] Bug#770174: salt-common: service module doesn't work for init scripts
Julien Cristau
julien.cristau at logilab.fr
Tue Dec 16 16:32:13 UTC 2014
On Tue, Dec 2, 2014 at 12:46:54 +0100, Hermann Lauer wrote:
> after fixing service.status (many thanks) service.enabled seems to need also a fix:
>
> # salt-call service.enabled shinken
> [INFO ] Executing command 'systemctl is-enabled shinken.service' in directory '/root'
> [ERROR ] Command 'systemctl is-enabled shinken.service' failed with return code: 1
> [ERROR ] output: Failed to get unit file state for shinken.service: No such file or directory
> local:
> False
>
> As after a reboot shinken is running and this is also told by "service shinken status",
> the above result is wrong and should be True.
>
Apparently this is due to
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760616 /
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751638
It's probably better to make systemctl DTRT than work around this in
salt (and puppet, and ...)
Cheers,
Julien
--
Julien Cristau <julien.cristau at logilab.fr>
Logilab http://www.logilab.fr/
Informatique scientifique & gestion de connaissances
More information about the pkg-salt-team
mailing list