From: Luca Toscano
Date: Sun, 9 Feb 2020 17:08:04 +0000 (+0000)
Subject: mod_systemd.xml: add basic unit example [skip ci]
X-Git-Tag: 2.5.0-alpha2-ci-test-only~1666
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e666bfda2d01021e123160012edf47af223de92;p=thirdparty%2Fapache%2Fhttpd.git
mod_systemd.xml: add basic unit example [skip ci]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873835 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_systemd.xml b/docs/manual/mod/mod_systemd.xml
index ba2717a3b78..e24f3fed495 100644
--- a/docs/manual/mod/mod_systemd.xml
+++ b/docs/manual/mod/mod_systemd.xml
@@ -36,6 +36,26 @@
href="https://www.freedesktop.org/software/systemd/man/systemd.service.html">systemd.service(5)
for more information). The module is activated if loaded.
+
+ Example of systemd service unit (more settings are probably needed for production systems)
+
+[Unit]
+Description=The Apache HTTP Server
+After=network.target
+
+[Service]
+Type=notify
+ExecStart=/usr/local/apache2/bin/httpd -D FOREGROUND -k start
+ExecReload=/usr/local/apache2/bin/httpd -k graceful
+ExecStop=/usr/local/apache2/bin/httpd -k graceful-stop
+
+[Install]
+WantedBy=multi-user.target
+
+
+
+ This module does not provide support for Systemd socket activation.
+
ExtendedStatus is
enabled by default if the module is loaded. If ExtendedStatus is not disabled in