Update mw.py

This commit is contained in:
JiRan
2022-09-11 18:40:41 +08:00
committed by GitHub
parent 52f80ec3b7
commit f22e10a496
+2 -2
View File
@@ -167,13 +167,13 @@ def restartWeb():
# systemd
systemd = '/lib/systemd/system/openresty.service'
if os.path.exists(systemd):
execShell('systemctl restart openresty')
execShell('systemctl reload openresty')
return True
# initd
initd = getServerDir() + '/openresty/init.d/openresty'
if os.path.exists(initd):
execShell(initd + ' ' + 'restart')
execShell(initd + ' ' + 'reload')
return True
return False