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


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to