mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -130,7 +130,7 @@ def stop():
|
|||||||
data = public.execShell(file + ' stop')
|
data = public.execShell(file + ' stop')
|
||||||
if data[1] == '':
|
if data[1] == '':
|
||||||
return 'ok'
|
return 'ok'
|
||||||
return 'fail'
|
return data[1]
|
||||||
|
|
||||||
|
|
||||||
def restart():
|
def restart():
|
||||||
@@ -138,7 +138,7 @@ def restart():
|
|||||||
data = public.execShell(file + ' restart')
|
data = public.execShell(file + ' restart')
|
||||||
if data[1] == '':
|
if data[1] == '':
|
||||||
return 'ok'
|
return 'ok'
|
||||||
return 'fail'
|
return data[1]
|
||||||
|
|
||||||
|
|
||||||
def reload():
|
def reload():
|
||||||
@@ -146,7 +146,7 @@ def reload():
|
|||||||
data = public.execShell(file + ' reload')
|
data = public.execShell(file + ' reload')
|
||||||
if data[1] == '':
|
if data[1] == '':
|
||||||
return 'ok'
|
return 'ok'
|
||||||
return 'fail'
|
return data[1]
|
||||||
|
|
||||||
|
|
||||||
def initdStatus():
|
def initdStatus():
|
||||||
|
|||||||
Reference in New Issue
Block a user