Bug#760616: I think this bug depends on #705254 being fixed
Michael Biebl
biebl at debian.org
Fri Feb 27 12:54:07 GMT 2015
Am 27.02.2015 um 12:31 schrieb Martin Pitt:
> Hallo Robert,
>
> Robert Euhus [2015-02-27 10:36 +0100]:
>> But for the 'systemctl is-enabled' command there exists no debian
>> update-rc.d equivalent yet
>
> Right, and I was saying that it wouldn't really have to -- the
> sysv-generator already turned all init.d scripts into services (in
> /run/systemd/generator.late) and conditionally enables them if they
> are enabled in sysv. So my point is, it doesn't *need* to ask
> update-rc.d or chkconfig whether it's enabled, it could just read the
> status from /run.
Ideally, update-rc.d would provide an API to query the enabled|disabled
state of the SysV init script and if that existed we definitely should
use that.
Lacking this API, we can deduce this state ourselves, by applying the
same algorithm as the sysv-generator.
The downside of this approach though, is that we would pull in SysV
specific knowledge into the systemd core, and we should really try to
avoid that.
Martin, how exactly would you use the state in /run state derive the
enabled/disabled state of the service?
--
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/20150227/59ca5c3e/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list