Bug#772555: untested hacky attempt at using systemctl preset

Andreas Henriksson andreas at fatal.se
Tue Mar 1 16:42:19 GMT 2016


Hello!

I'm attaching a completely untested attempt at prefering "systemctl
preset" over just enabling unconditionally.

I've checked and it seems on a system running sysvinit-core and systemd
package installed (eg. systemctl available) "systemctl preset ..."
seems to do the right thing (as well as is-enabled, enable, disable,
...).  This together with the fallback on the old enable when systemctl
is not available should hopefully mean no regression in any case of init
system package installation combos.

Even if the patch actually works, there's definitely still some
remaining work to be done here. See the comments in the patch itself.

Comments welcome. Any other cases to consider that the ones who are
already handled or mentioned in the patch?

Anyone willing to test this and report back?

Regards,
Andreas Henriksson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dsh-preset.patch
Type: text/x-diff
Size: 3731 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160301/698d6c19/attachment.patch>


More information about the Pkg-systemd-maintainers mailing list