]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-init
Typo. Closes: #653339
[debhelper.git] / autoscripts / postinst-init
index 159b12d70c3aeb745ab76fcd4415b5689e589be0..2430b2c0fc41e33e7cd4111a1f0e39c9a0054404 100644 (file)
@@ -1,4 +1,4 @@
-if [ -e "/etc/init.d/#SCRIPT#" ]; then
+if [ -x "/etc/init.d/#SCRIPT#" ]; then
        update-rc.d #SCRIPT# #INITPARMS# >/dev/null
-       /etc/init.d/#SCRIPT# start
+       invoke-rc.d #SCRIPT# start || #ERROR_HANDLER#
 fi