Update index.py

This commit is contained in:
midoks 2019-12-06 16:00:33 +08:00
parent 51a368a998
commit e43970652e
1 changed files with 4 additions and 4 deletions

View File

@ -117,10 +117,10 @@ def stop():
def restart():
file = initDreplace()
data = runShell(file + ' restart')
if data[1] == '':
return 'ok'
return 'fail'
cmd = file + ' restart'
data = subprocess.Popen(
cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
return 'ok'
def reload():