diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index 7b5a53d03..643c1aca7 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -343,9 +343,14 @@ def initdInstall(): def initdUinstall(): - if mw.isAppleSystem(): + current_os = mw.getOs() + if getOs() == 'darwin': return "Apple Computer does not support" + if current_os.startswith('freebsd'): + initd_bin = getInitDFile() + os.remove(initd_bin) + mw.execShell('systemctl disable openresty') return 'ok'