Bug#760616: systemctl enable works, but is-enabled shows it in fact did not work

Michael Biebl biebl at debian.org
Sat Sep 6 12:57:04 BST 2014


Am 06.09.2014 05:36, schrieb 積丹尼 Dan Jacobson:
> Package: systemd
> Version: 214-1
> File: /bin/systemctl
> 
> # systemctl enable dictd; echo $?
> Synchronizing state for dictd.service with sysvinit using update-rc.d...
> Executing /usr/sbin/update-rc.d dictd defaults
> Executing /usr/sbin/update-rc.d dictd enable
> 0
> # systemctl is-enabled dictd; echo $?
> Failed to get unit file state for dictd.service: No such file or directory
> 1

The issue here is, that dictd only provides a SysV init script and
update-rc.d does not provide an interface to query if a service file is
enabled or not.
So while we can forward enable/disable requests to
update-rc.d enable/disable, there is no equivalent functionality for
is-enabled.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140906/6912cfd7/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list