Update index.py

This commit is contained in:
midoks 2020-07-11 00:21:15 +08:00
parent 7658d9c88e
commit c027c7238a
1 changed files with 2 additions and 0 deletions

View File

@ -110,6 +110,8 @@ def stop():
def restart():
file = initDreplace()
data = mw.execShell(file + ' restart')
log_file = getServerDir() + "/data/redis.log"
mw.execShell("echo '' > " + log_file)
if data[1] == '':
return 'ok'
return 'fail'