This commit is contained in:
Mr Chen
2019-02-14 15:19:36 +08:00
parent ed83c1da60
commit ea295d1e0a
2 changed files with 10 additions and 5 deletions
+4 -4
View File
@@ -135,7 +135,7 @@ def start():
# print data
if data[1] == '':
return 'ok'
return data[1]
return data[0]
def stop():
@@ -143,7 +143,7 @@ def stop():
data = public.execShell(file + ' stop')
if data[1] == '':
return 'ok'
return 'fail'
return data[1]
def restart():
@@ -151,7 +151,7 @@ def restart():
data = public.execShell(file + ' reload')
if data[1] == '':
return 'ok'
return 'fail'
return data[1]
def reload():
@@ -159,7 +159,7 @@ def reload():
data = public.execShell(file + ' reload')
if data[1] == '':
return 'ok'
return 'fail'
return data[1]
def initdStatus():