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

Terry Burton tez at terryburton.co.uk
Wed Jun 1 13:07:37 BST 2016


Package: systemd
Version: 230-2
Severity: normal

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.

Would a maintainer kindly review? It may be desirable to coordinate
this with corresponding patches to the init-system-helpers scripts
[3].


[1] https://lists.freedesktop.org/archives/systemd-devel/2015-July/033628.html
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792894
[3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826011


Many thanks,

Terry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 40-systemd.patch
Type: text/x-patch
Size: 1219 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160601/245899fc/attachment.bin>


More information about the Pkg-systemd-maintainers mailing list