X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=autoscripts%2Fprerm-init-norestart;h=cacde6e31c98e2c68d3a53717052230452a8a1c3;hb=18a0da8092ea9f3dc48bca92b36f592af25a608d;hp=47a49d4a65ac50c947d41fd97417305d6bf108f6;hpb=113433b867877a98915194631f8bbf14c6f65048;p=debhelper.git diff --git a/autoscripts/prerm-init-norestart b/autoscripts/prerm-init-norestart index 47a49d4..cacde6e 100644 --- a/autoscripts/prerm-init-norestart +++ b/autoscripts/prerm-init-norestart @@ -1,3 +1,3 @@ -if [ -e "/etc/init.d/#SCRIPT#" -a "$1" = remove ]; then - /etc/init.d/#SCRIPT# stop +if [ -x "/etc/init.d/#SCRIPT#" ] && [ "$1" = remove ]; then + invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER# fi