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

Michael Biebl biebl at debian.org
Sat Sep 6 13:31:43 BST 2014


Am 06.09.2014 14:27, schrieb 積丹尼 Dan Jacobson:
>>>>>> "MB" == Michael Biebl <biebl at debian.org> writes:
>>> # systemctl is-enabled dictd; echo $?
>>> Failed to get unit file state for dictd.service: No such file or directory
>>> 1
> 
> MB> The issue here is, that dictd only provides a SysV init script and
> MB> update-rc.d does not provide an interface to query if a service file is
> MB> enabled or not.
> MB> So while we can forward enable/disable requests to
> MB> update-rc.d enable/disable, there is no equivalent functionality for
> MB> is-enabled.
> 
> Well maybe the error message should mention that.

I guess we could print a warning like this.

Then again, there are others in the pkg-systemd team who think we should
use a rather pragmatic approach like testing for a /etc/rc?.d/S??foo
symlink to determine whether a service is enabled or not.


-- 
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/96dc93d4/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list