Use invoke-rc.d where installed, to avoid incorrect startup when installing

This commit is contained in:
Jamie Cameron
2007-09-03 17:24:49 +00:00
parent 79f5398de9
commit 06a6e4f87a

View File

@@ -285,7 +285,11 @@ if [ "$product" = "webmin" ]; then
fi
rm -f /var/lock/subsys/$baseproduct
if [ "$inetd" != "1" ]; then
/etc/init.d/$baseproduct start >/dev/null 2>&1 </dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d $baseproduct start >/dev/null 2>&1 </dev/null
else
/etc/init.d/$baseproduct start >/dev/null 2>&1 </dev/null
fi
fi
cat >/etc/$baseproduct/uninstall.sh <<EOFF
#!/bin/sh