优化重启和任务功能

This commit is contained in:
Mr Chen
2019-04-19 10:37:02 +08:00
parent e5143e3125
commit 02e0bc71d9
2 changed files with 18 additions and 5 deletions
+2 -1
View File
@@ -103,7 +103,8 @@ class system_api:
@async
def restartMw(self):
sleep(1)
cmd = public.getRunDir() + '/scripts/init.d/mw reload'
cmd = public.getRunDir() + '/scripts/init.d/mw restart'
#print cmd
public.execShell(cmd)
@async