#849925 Consolidate common functionality from update-rc.d and deb-systemd-helper