From feb91ce0b939612eb7a595a0e835df464b484e60 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 28 Dec 2018 11:12:50 +0800 Subject: [PATCH] Update system_api.py --- class/core/system_api.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/class/core/system_api.py b/class/core/system_api.py index 6267787df..be0ce2cfc 100755 --- a/class/core/system_api.py +++ b/class/core/system_api.py @@ -72,10 +72,8 @@ class system_api: # 重启面板 def restartApi(self): - - cmd = public.getRunDir() + '/scripts/init.d/mw restart &' - print public.execShell(cmd) - + cmd = public.getRunDir() + '/scripts/init.d/mw start' + public.execShell(cmd) return public.returnJson(True, '面板已重启!') ##### ----- end ----- ###