Update index.py

pull/889/head
dami 2 weeks ago
parent 9781516552
commit 15df77940e
  1. 12
      plugins/supervisor/index.py

@ -74,11 +74,15 @@ def checkArgs(data, ck=[]):
def status():
data = mw.execShell(
"ps -ef|grep supervisor | grep -v grep | grep -v index.py | awk '{print $2}'")
if data[0] == '':
# data = mw.execShell(
# "ps -ef|grep supervisor | grep -v grep | grep -v index.py | awk '{print $2}'")
# if data[0] == '':
# return 'stop'
pid_file = getServerDir() + "/run/supervisor.pid"
if os.path.exists(pid_file):
return "start"
return 'stop'
return 'start'
def initDreplace():

Loading…
Cancel
Save