Update httpd.service.tpl

This commit is contained in:
dami
2026-04-11 20:14:46 +08:00
parent 5c53bb3853
commit 320001b3a3
+9 -6
View File
@@ -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]