From 6d06f1fbce50b9daaa1abefd807b0f07d3ea47c0 Mon Sep 17 00:00:00 2001 From: dami Date: Sat, 11 Apr 2026 23:53:31 +0800 Subject: [PATCH] update --- plugins/apache/init.d/httpd.service.tpl | 15 +++++++-------- plugins/apache/init.d/httpd.service2.tpl | 17 +++++++++++++++++ 2 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 plugins/apache/init.d/httpd.service2.tpl diff --git a/plugins/apache/init.d/httpd.service.tpl b/plugins/apache/init.d/httpd.service.tpl index 97f3a73fb..8585790b4 100644 --- a/plugins/apache/init.d/httpd.service.tpl +++ b/plugins/apache/init.d/httpd.service.tpl @@ -3,15 +3,14 @@ Description=Apache Web Server After=network.target [Service] -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 +Type=simple +Environment=LANG=C +ExecStart={$SERVER_PATH}/apache/httpd/bin/httpd $OPTIONS -DFOREGROUND +ExecReload={$SERVER_PATH}/apache/httpd/bin/httpd $OPTIONS -k graceful +KillSignal=SIGWINCH + +KillMode=mixed PrivateTmp=true -User=www -Group=www -Restart=on-failure [Install] WantedBy=multi-user.target \ No newline at end of file diff --git a/plugins/apache/init.d/httpd.service2.tpl b/plugins/apache/init.d/httpd.service2.tpl new file mode 100644 index 000000000..97f3a73fb --- /dev/null +++ b/plugins/apache/init.d/httpd.service2.tpl @@ -0,0 +1,17 @@ +[Unit] +Description=Apache Web Server +After=network.target + +[Service] +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=www +Group=www +Restart=on-failure + +[Install] +WantedBy=multi-user.target \ No newline at end of file