From 6f11cd71cf99309a29d68399f91d12f07ef50895 Mon Sep 17 00:00:00 2001
From: Joe Orton
+[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 +KillMode=mixed + +[Install] +WantedBy=multi-user.target ++
Special attention should be given to how ExecStop
+ and/or KillMode are configured for the service. If
+ configured, an ExecStop command should be a
+ synchronous operation which itself exits when the daemon
+ has terminated. Running httpd -k stop
+ asynchronously initiates daemon termination, so does not
+ satisfy this condition. The example above uses
+ KillMode=mixed so that systemd sends
+ SIGTERM to signal the parent process (and only the
+ parent) to shut down. The entire process group is then sent
+ SIGKILL after TimeoutStopSec elapses, if
+ any processes are still running. See systemd.kill(5)
+ for more information.
This module does not provide support for Systemd socket activation.
+