Update index.py

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

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

Loading…
Cancel
Save