Update index.py

This commit is contained in:
Mr Chen
2019-08-01 15:32:17 +08:00
parent 56746d9c01
commit d35c6bb02f
+1 -2
View File
@@ -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'