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?

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to