Bug#826012: /lib/lsb/init-functions.d/40-systemd: Support for compound target units as first-order services

Michael Biebl biebl at debian.org
Mon Dec 10 13:12:10 GMT 2018


Hi

Am 01.06.16 um 14:07 schrieb Terry Burton:
> This message [1] identifies that compound target units are the
> appropriate mechanism for controlling multiple service units.
> 
> The LSB override hook currently only consider .service units, ignoring
> compound .target units.
> 
> Support for this would be useful for providing systemd scripts for
> multi-daemon services such as ISC DHCP server (with IPv4 and IPv6;
> discussions ongoing here [2]) and PostgreSQL.
> 
> A patch for /lib/lsb/init-functions.d/40-systemd is attached. We probe
> for a compound .target unit (having component services in the derived
> ConsistsOf property) of matching service name invoking this as we
> would a plain .service unit.

I don't think using ConsistsOf= is the right property to determine
whether to use a target or not.
There can be targets without ConsistsOf and there can also be services
with ConsistsOf

Say you have test.service and test.target.
I'm not sure if there is a reliable way to detect whether the user
wanted test.service or test.target when running "/etc/init.d/test ..."

-- 
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: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20181210/0b892529/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list