diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index baa7e19f8..19194fccb 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -282,13 +282,13 @@ def restyOp(method): def op_submit_systemctl_restart(): - current_os = mw.getOs() if current_os.startswith("freebsd"): mw.execShell('service openresty restart') - return + return True mw.execShell('systemctl restart openresty') + return True def op_submit_init_restart(file):