|
|
@ -308,10 +308,15 @@ def reload(): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def initdStatus(): |
|
|
|
def initdStatus(): |
|
|
|
|
|
|
|
current_os = mw.getOs() |
|
|
|
if mw.isAppleSystem(): |
|
|
|
if getOs() == 'darwin': |
|
|
|
return "Apple Computer does not support" |
|
|
|
return "Apple Computer does not support" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if current_os.startswith('freebsd'): |
|
|
|
|
|
|
|
initd_bin = getInitDFile() |
|
|
|
|
|
|
|
if os.path.exists(initd_bin): |
|
|
|
|
|
|
|
return 'ok' |
|
|
|
|
|
|
|
|
|
|
|
shell_cmd = 'systemctl status openresty | grep loaded | grep "enabled;"' |
|
|
|
shell_cmd = 'systemctl status openresty | grep loaded | grep "enabled;"' |
|
|
|
data = mw.execShell(shell_cmd) |
|
|
|
data = mw.execShell(shell_cmd) |
|
|
|
if data[0] == '': |
|
|
|
if data[0] == '': |
|
|
|