Bug#782496: is-enabled fails for legacy sysv services
Nusenu
nusenu at openmailbox.org
Mon Apr 13 09:09:23 BST 2015
Package: systemd
Version: 215-14
Hi,
'systemctl is-enabled <service>'
returns > 0 even if the service is enabled, when <service> is a legacy
sysv init script.
systemctl is-enabled tor
Failed to get unit file state for tor.service: No such file or directory
echo $?
1
chkconfig package (11.4.54.60.1debian1) is installed. Should it become a
dependency for systemd in the future if 'is-enabled' depends on the
presence of chkconfig?
systemd 208 on RHEL7 does not show this behavior:
systemctl is-enabled tor
tor.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig tor --level=5
enabled
echo $?
0
references:
http://lists.freedesktop.org/archives/systemd-devel/2015-April/030652.html
http://lists.freedesktop.org/archives/systemd-devel/2015-April/030671.html
https://github.com/nusenu/ansible-relayor/issues/20
More information about the Pkg-systemd-maintainers
mailing list