From 7e666bfda2d01021e123160012edf47af223de92 Mon Sep 17 00:00:00 2001
From: Luca Toscano
Date: Sun, 9 Feb 2020 17:08:04 +0000
Subject: [PATCH] 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
---
docs/manual/mod/mod_systemd.xml | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
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
--
2.47.3