Bug#826011: init-system-helpers: Support for compound target units as first-order services

Terry Burton tez at terryburton.co.uk
Wed Jun 1 12:48:15 BST 2016


Package: init-system-helpers
Version: 1.34
Severity: normal

This message [1] identifies that compound target units are the
appropriate mechanism for controlling multiple service units.

The sys-v compatibility helpers (service, {invoke,update}-rc.d,
debhelpers, et al.) currently only consider .service units, ignoring
compound .target units, when doing things such as overriding LSB
scripts, enabling/starting services, etc.

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.

An example patch for /usr/sbin/service 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 let me know whether this approach is
acceptable in which case I will extend it to all of the necessary
support scripts?


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


Many thanks,

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


More information about the Pkg-systemd-maintainers mailing list