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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user