Skip to content

Support template units

Fix

deb-systemd-helper enable foo@1.service will not work even if the corresponding foo@.service is correctly in place.

Closes: #801822

This changes the behaviour how template units are treated to be:

Use foo@1.service as symlink name in /var/lib/systemd/deb-systemd-helper-enabled/x.target.wants/

Use foo@1.service.dsh-also as filename in in /var/lib/systemd/deb-systemd-helper-enabled/

The content of the dsh-also file shall be: /etc/systemd/system/x.target.wants/foo@1.service

And /etc/systemd/system/x.target.wants/foo@1.service shall be a symlink to /lib/systemd/system/foo@.service

Signed-off-by: Manuel Traut manuel.traut@mt.com

Merge request reports

Loading