From 320001b3a35e2b924d77432d6dc36791cd83e7d7 Mon Sep 17 00:00:00 2001 From: dami Date: Sat, 11 Apr 2026 20:14:46 +0800 Subject: [PATCH] Update httpd.service.tpl --- plugins/apache/init.d/httpd.service.tpl | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/plugins/apache/init.d/httpd.service.tpl b/plugins/apache/init.d/httpd.service.tpl index ac52989a0..eba026792 100644 --- a/plugins/apache/init.d/httpd.service.tpl +++ b/plugins/apache/init.d/httpd.service.tpl @@ -1,13 +1,16 @@ [Unit] -Description=OpenResty is a dynamic web platform based on NGINX and LuaJIT. +Description=Apache Web Server After=network.target [Service] -Type=forking -ExecStart={$SERVER_PATH}/apache/bin/httpd -c {$SERVER_PATH}/apache/nginx/conf/nginx.conf -ExecStop={$SERVER_PATH}/apache/bin/httpd -s stop -ExecReload={$SERVER_PATH}/apache/bin/httpd -s reload -KillMode=process +Type=forking +PIDFile={$SERVER_PATH}/apache/httpd/logs/httpd.pid +ExecStart={$SERVER_PATH}/apache/httpd/bin/apachectl start +ExecReload={$SERVER_PATH}/apache/httpd/bin/apachectl graceful +ExecStop={$SERVER_PATH}/apache/httpd/bin/apachectl stop +PrivateTmp=true +User=apache +Group=apache Restart=on-failure [Install]