Force stop before starting, just in case the init system thinks we're already started

This commit is contained in:
Jamie Cameron
2016-08-24 21:45:21 -07:00
parent 7e6982a0cf
commit cb481287ac

View File

@@ -307,6 +307,7 @@ fi
rm -f /var/lock/subsys/$baseproduct
if [ "$inetd" != "1" ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d $baseproduct stop >/dev/null 2>&1 </dev/null
invoke-rc.d $baseproduct start >/dev/null 2>&1 </dev/null
else
/etc/$baseproduct/start >/dev/null 2>&1 </dev/null