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?
signature.asc
Description: OpenPGP digital signature