You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by el...@apache.org on 2020/02/09 17:08:04 UTC
svn commit: r1873835 - /httpd/httpd/trunk/docs/manual/mod/mod_systemd.xml
Author: elukey
Date: Sun Feb 9 17:08:04 2020
New Revision: 1873835
URL: http://svn.apache.org/viewvc?rev=1873835&view=rev
Log:
mod_systemd.xml: add basic unit example [skip ci]
Modified:
httpd/httpd/trunk/docs/manual/mod/mod_systemd.xml
Modified: httpd/httpd/trunk/docs/manual/mod/mod_systemd.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_systemd.xml?rev=1873835&r1=1873834&r2=1873835&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_systemd.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_systemd.xml Sun Feb 9 17:08:04 2020
@@ -36,6 +36,26 @@
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