-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
+ if [ -x /usr/sbin/invoke-rc.d ]; then
+ invoke-rc.d #SCRIPT# start
+ else
+ /etc/init.d/#SCRIPT# start
+ fi
fi