diff --git a/class/core/mw.py b/class/core/mw.py index 2ab19e2a2..08c341c49 100755 --- a/class/core/mw.py +++ b/class/core/mw.py @@ -228,6 +228,13 @@ def isIpAddr(ip): return False +def getWebStatus(): + pid = getServerDir() + '/openresty/nginx/logs/nginx.pid' + if os.path.exists(pid): + return True + return False + + def restartWeb(): return opWeb("reload")