]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/prerm-init-norestart
cmake: Pass CPPFLAGS in CFLAGS. Closes: #668813 Thanks, Simon Ruderich for the patch...
[debhelper.git] / autoscripts / prerm-init-norestart
index e04ec25a1206f350db69120a4e64c6fef3a917ea..cacde6e31c98e2c68d3a53717052230452a8a1c3 100644 (file)
@@ -1,3 +1,3 @@
-if [ -e "#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