]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-init
r547: * Use invoke-rc.d always now that it is in policy. Fall back to old behavior
[debhelper.git] / autoscripts / postinst-init
index 051f77474c40adc46ec12d7c32046ed70a31845c..b5bd7a5798870f5e7d311e1ed3f5867852b9df6c 100644 (file)
@@ -1,4 +1,8 @@
 if [ -x "/etc/init.d/#SCRIPT#" ]; then
        update-rc.d #SCRIPT# #INITPARMS# >/dev/null
-       /etc/init.d/#SCRIPT# start
+       if [ -x /usr/sbin/invoke-rc.d ]; then
+               invoke-rc.d #SCRIPT# start
+       else
+               /etc/init.d/#SCRIPT# start
+       fi
 fi