]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/prerm-init
cmake: Pass CPPFLAGS in CFLAGS. Closes: #668813 Thanks, Simon Ruderich for the patch...
[debhelper.git] / autoscripts / prerm-init
index 260d69d9e3d34cf1a552100abbd8a4eac5d3dd1c..2a8aa4c6cdd619a2aa52c6d83f6f3528590ff5ba 100644 (file)
@@ -1,3 +1,3 @@
-if [ -e "#SCRIPT#" ]; then
-       /etc/init.d/#SCRIPT# stop
+if [ -x "/etc/init.d/#SCRIPT#" ]; then
+       invoke-rc.d #SCRIPT# stop || #ERROR_HANDLER#
 fi