mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 05:59:25 +08:00
Update index.py
This commit is contained in:
@@ -120,9 +120,7 @@ def supOp(method):
|
||||
def start():
|
||||
initDreplace()
|
||||
|
||||
systemDir = mw.systemdCfgDir()
|
||||
systemService = systemDir + '/supervisor.service'
|
||||
if os.path.exists(systemService):
|
||||
if not mw.isAppleSystem():
|
||||
data = mw.execShell('systemctl start supervisor')
|
||||
if data[1] == '':
|
||||
return 'ok'
|
||||
|
||||
Reference in New Issue
Block a user