]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/prerm-init-norestart
Updated French man page translation. Closes: #685560
[debhelper.git] / autoscripts / prerm-init-norestart
index 47a49d4a65ac50c947d41fd97417305d6bf108f6..cacde6e31c98e2c68d3a53717052230452a8a1c3 100644 (file)
@@ -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