From f22e10a496624cc2aba4b88aed13e1ccb3f00566 Mon Sep 17 00:00:00 2001 From: JiRan <54714341+h88782481@users.noreply.github.com> Date: Sun, 11 Sep 2022 18:40:41 +0800 Subject: [PATCH] Update mw.py --- class/core/mw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class/core/mw.py b/class/core/mw.py index b2a5bad74..c4cb1d603 100755 --- a/class/core/mw.py +++ b/class/core/mw.py @@ -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