Update index.py

pull/109/head
Mr Chen 6 years ago
parent bfa8cf7d7a
commit 0119ab55c2
  1. 3
      plugins/openresty/index.py

@ -176,8 +176,7 @@ def initDreplace():
def status():
data = public.execShell(
"ps -ef|grep nginx |grep -v grep | grep -v python | awk '{print $2}'")
data = public.execShell("ps -ef|grep nginx |grep -v grep | grep -v python | awk '{print $2}'")
if data[0] == '':
return 'stop'
return 'start'

Loading…
Cancel
Save