Bug#760616: I think this bug depends on #705254 being fixed

Martin Pitt mpitt at debian.org
Fri Feb 27 13:31:34 GMT 2015


Hey Michael,

Michael Biebl [2015-02-27 13:54 +0100]:
> Lacking this API, we can deduce this state ourselves, by applying the
> same algorithm as the sysv-generator.

I'd actually go a step further and just use the output of
systemd-generator.

> Martin, how exactly would you use the state in /run state derive the
> enabled/disabled state of the service?

I'd just check if the unit in /run/systemd/generator.late/ is enabled.
I. e. something like "systemctl --runtime is-enabled foo.service".
That doesn't work (--runtime isn't defined for is-enabled), but it
would match what --runtime does for enable/disable.

At least that ought to work, no?

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150227/7118eb40/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list