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(): def status():
data = public.execShell( data = public.execShell("ps -ef|grep nginx |grep -v grep | grep -v python | awk '{print $2}'")
"ps -ef|grep nginx |grep -v grep | grep -v python | awk '{print $2}'")
if data[0] == '': if data[0] == '':
return 'stop' return 'stop'
return 'start' return 'start'

Loading…
Cancel
Save