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