From f67342fd7a3cfd46e8afa93af4f649563f67253d Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 9 Sep 2024 22:56:52 +0800 Subject: [PATCH] Update index.py --- plugins/openresty/index.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index b5e163e93..e82032692 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -400,6 +400,10 @@ def initdUinstall(): def runInfo(): + op_status = status() + if op_status == 'stop': + return mw.returnJson(False, "未启动!") + # 取Openresty负载状态 try: url = 'http://127.0.0.1/nginx_status'