diff options
author | Luca Toscano <elukey@apache.org> | 2020-02-09 18:08:04 +0100 |
---|---|---|
committer | Luca Toscano <elukey@apache.org> | 2020-02-09 18:08:04 +0100 |
commit | 7e666bfda2d01021e123160012edf47af223de92 (patch) | |
tree | 8c352db7a8ea0b3d311505a3904a5d4f78b01089 /docs/manual | |
parent | fr doc rebuild. (diff) | |
download | apache2-7e666bfda2d01021e123160012edf47af223de92.tar.xz apache2-7e666bfda2d01021e123160012edf47af223de92.zip |
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
Diffstat (limited to 'docs/manual')
-rw-r--r-- | docs/manual/mod/mod_systemd.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/manual/mod/mod_systemd.xml b/docs/manual/mod/mod_systemd.xml index ba2717a3b7..e24f3fed49 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)</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 |