8335b1
[Unit]
8335b1
Description=The Apache HTTP Server
8335b1
After=network.target remote-fs.target nss-lookup.target
8335b1
Documentation=man:httpd(8)
8335b1
Documentation=man:apachectl(8)
8335b1
8335b1
[Service]
8335b1
Type=notify
8335b1
EnvironmentFile=/etc/sysconfig/httpd
8335b1
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
8335b1
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
8335b1
ExecStop=/bin/kill -WINCH ${MAINPID}
8335b1
# We want systemd to give httpd some time to finish gracefully, but still want
8335b1
# it to kill httpd after TimeoutStopSec if something went wrong during the
8335b1
# graceful stop. Normally, Systemd sends SIGTERM signal right after the
8335b1
# ExecStop, which would kill httpd. We are sending useless SIGCONT here to give
8335b1
# httpd time to finish.
8335b1
KillSignal=SIGCONT
8335b1
PrivateTmp=true
8335b1
8335b1
[Install]
8335b1
WantedBy=multi-user.target