summaryrefslogtreecommitdiff
path: root/autoscripts/prerm-init
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2018-05-13 15:17:39 +0000
committerNiels Thykier <niels@thykier.net>2018-09-03 06:01:42 +0000
commitcba2a8a6ea64773e61ab41c218853ee729656650 (patch)
tree6904f58c627cf781697121efa9e4cf6c52ef5d11 /autoscripts/prerm-init
parent5d097054219ffb4efdeb946a4ffa59caeb15511c (diff)
downloaddebhelper-cba2a8a6ea64773e61ab41c218853ee729656650.tar.gz
Make dh_install{init,systemd}'s autoscripts independent [c12]
Have dh_installinit use the new --skip-systemd-native parameter and let dh_installsystemd always generate autoscript snippets for systemd services. This ensures that dh_installsystemd's snippet will be used for starting the services and will among other ensure that services are properly unmasked before started. Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'autoscripts/prerm-init')
-rw-r--r--autoscripts/prerm-init2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoscripts/prerm-init b/autoscripts/prerm-init
index 2a8aa4c6..f8707b9c 100644
--- a/autoscripts/prerm-init
+++ b/autoscripts/prerm-init
@@ -1,3 +1,3 @@
if [ -x "/etc/init.d/#SCRIPT#" ]; then
- invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER#
+ invoke-rc.d #INVOKE_RCD_PARAMS##SCRIPT# stop || #ERROR_HANDLER#
fi