From b97e0df6c5bf6680b0267935a115e8b86ea29f7e Mon Sep 17 00:00:00 2001 From: dami Date: Sat, 11 Apr 2026 20:44:54 +0800 Subject: [PATCH] Update index.py --- plugins/apache/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/apache/index.py b/plugins/apache/index.py index b36684f50..359c46a49 100755 --- a/plugins/apache/index.py +++ b/plugins/apache/index.py @@ -237,12 +237,12 @@ def restyOp(method): return data[1] if current_os.startswith("freebsd"): - mw.execShell('service '+getPluginName()+' '+method) + mw.execShell('service httpd '+method) if data[1] == '': return 'ok' return data[1] - data = mw.execShell('systemctl ' + method + ' '+getPluginName()) + data = mw.execShell('systemctl ' + method + ' httpd') if data[1] == '': return 'ok' return data[1]