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:21:33 GMT 2018


Am 10.12.18 um 14:12 schrieb Michael Biebl:
> 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 ..."

Just tested systemctl. If you have a test.service and test.target and
you run
systemctl start test
then test.service is started but not test.target.


So, I guess what would be more in line with the systemctl behaviour is a
patch which does the following:

If you run /etc/init.d/test start:
- We start test.service if it exists
- If test.service does not exist and a test.target exist, start the target.
- If no service and target exists, fall through and let the sysv init
script handle the request directly

Michael
-- 
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/887b9903/attachment-0001.sig>


More information about the Pkg-systemd-maintainers mailing list