daemon-reload is needed before init scripts work https://github.com/webmin/webmin/issues/1612

This commit is contained in:
Jamie Cameron
2022-03-29 19:37:49 -07:00
parent 5201cbe0e6
commit 32baf0039f

View File

@@ -331,6 +331,7 @@ if [ "$product" = "webmin" ]; then
fi
fi
rm -f /var/lock/subsys/$baseproduct
systemctl daemon-reload >/dev/null 2>&1
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