Update task.py

This commit is contained in:
midoks
2019-03-18 22:49:21 +08:00
parent 4615b70c60
commit a4237ca213
+2 -2
View File
@@ -327,8 +327,8 @@ def systemTask():
if reloadNum > 1440: if reloadNum > 1440:
reloadNum = 0 reloadNum = 0
# if os.path.exists('data/ssl.pl'): # if os.path.exists('data/ssl.pl'):
os.system(public.getRunDir() + cmd = public.getRunDir() + '/scripts/init.d/mw restart > /dev/null 2>&1'
'/scripts/init.d/mw restart > /dev/null 2>&1') os.system(cmd)
except Exception, ex: except Exception, ex:
print str(ex) print str(ex)