Update mw.py

pull/189/head
JiRan 3 years ago committed by GitHub
parent 52f80ec3b7
commit f22e10a496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      class/core/mw.py

@ -167,13 +167,13 @@ def restartWeb():
# systemd # systemd
systemd = '/lib/systemd/system/openresty.service' systemd = '/lib/systemd/system/openresty.service'
if os.path.exists(systemd): if os.path.exists(systemd):
execShell('systemctl restart openresty') execShell('systemctl reload openresty')
return True return True
# initd # initd
initd = getServerDir() + '/openresty/init.d/openresty' initd = getServerDir() + '/openresty/init.d/openresty'
if os.path.exists(initd): if os.path.exists(initd):
execShell(initd + ' ' + 'restart') execShell(initd + ' ' + 'reload')
return True return True
return False return False

Loading…
Cancel
Save