]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_systemd.xml: add basic unit example [skip ci]
authorLuca Toscano <elukey@apache.org>
Sun, 9 Feb 2020 17:08:04 +0000 (17:08 +0000)
committerLuca Toscano <elukey@apache.org>
Sun, 9 Feb 2020 17:08:04 +0000 (17:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873835 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_systemd.xml

index ba2717a3b787b6ad12584f08a3a4e2af6cf93b05..e24f3fed4954236faccd9ec82378e72245db8be3 100644 (file)
     href="https://www.freedesktop.org/software/systemd/man/systemd.service.html">systemd.service(5)</a>
     for more information).  The module is activated if loaded.</p>
 
+    <example>
+    <title>Example of systemd service unit (more settings are probably needed for production systems)</title>
+    <pre>
+[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
+    </pre>
+    </example>
+
+   <p>This module does not provide support for Systemd socket activation.</p>
+
     <p><directive module="core">ExtendedStatus</directive> is
     enabled by default if the module is loaded.  If <directive
     module="core">ExtendedStatus</directive> is not disabled in