Comment 6 for bug 1312836

Revision history for this message
Martin Pitt (pitti) wrote :

Adding a debhelper task, to check if we can drop that "autoscripts/postinst-init*: Only call update-rc.d when there's no upstart job" delta. Whether we can just do that depends on this question: If there is an /etc/rc?.d/S??foo and an /etc/init/foo.conf, does upstart only run the upstart job and the init.d script gets "masked" by that automatically (1)? Or would upstart run both (2)?

If (1), we can drop the dh_installinit delta, get the rc?.d symlinks back, and will have init.d scripts as properly working fallbacks for packages which don't have a systemd unit. This will also unbreak insserv, as it will then be able to properly figure out dependencies (Debian stopped supporting the non-insserv "static priorities" mode, so sooner or later we'll have to do this).

If (2), how difficult is it to implement this masking dynamically in upstart instead of statically in dh_installinit? This would then need an upstart task.