Update system_api.py

This commit is contained in:
midoks
2020-07-15 12:29:45 +08:00
parent fa1fedeac0
commit 568380c548
+2 -2
View File
@@ -104,9 +104,9 @@ class system_api:
@async
def restartMw(self):
sleep(0.3)
cmd = mw.getRunDir() + '/scripts/init.d/mw restart'
# cmd = mw.getRunDir() + '/scripts/init.d/mw restart'
# print cmd
mw.execShell(cmd)
mw.execShell('service mw restart')
@async
def restartServer(self):