From c027c7238a9d3b53e7e9cb1a67e7fdd229e6dc77 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 11 Jul 2020 00:21:15 +0800 Subject: [PATCH] Update index.py --- plugins/redis/index.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/redis/index.py b/plugins/redis/index.py index 2458651ad..0f383653d 100755 --- a/plugins/redis/index.py +++ b/plugins/redis/index.py @@ -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'