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