]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/prerm-init-norestart
dh_installinit: never call init scripts directly, only through invoke-rc.d
[debhelper.git] / autoscripts / prerm-init-norestart
index 9b63174811895524939fe2edaa38c0e70488e4b3..cacde6e31c98e2c68d3a53717052230452a8a1c3 100644 (file)
@@ -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