From ab623d0bf8c2d59507f8e666253e316c76e2de90 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Mon, 17 Jan 2011 01:52:12 -0800 Subject: dh_installinit: never call init scripts directly, only through invoke-rc.d --- autoscripts/prerm-init-norestart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'autoscripts/prerm-init-norestart') diff --git a/autoscripts/prerm-init-norestart b/autoscripts/prerm-init-norestart index 9b631748..cacde6e3 100644 --- a/autoscripts/prerm-init-norestart +++ b/autoscripts/prerm-init-norestart @@ -1,7 +1,3 @@ if [ -x "/etc/init.d/#SCRIPT#" ] && [ "$1" = remove ]; then - if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then - invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER# - else - /etc/init.d/#SCRIPT# stop || #ERROR_HANDLER# - fi + invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER# fi -- cgit v1.2.3