diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index da32377ee..75d0c16af 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -308,10 +308,15 @@ def reload(): def initdStatus(): - - if mw.isAppleSystem(): + current_os = mw.getOs() + if getOs() == 'darwin': 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;"' data = mw.execShell(shell_cmd) if data[0] == '':