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?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to