[Unit] Description=httpd-admin The Koozali SME Server Server-Manager web service After=network.target remote-fs.target Documentation=man:httpd(8) Documentation=man:apachectl(8) [Service] Type=notify ExecStartPre=/sbin/e-smith/service-status httpd-admin ExecStartPre=/sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf ExecStart=/usr/sbin/httpd -f /etc/httpd/admin-conf/httpd.conf -DFOREGROUND ExecReload=/usr/sbin/httpd -f /etc/httpd/admin-conf/httpd.conf -k graceful ExecStop=/bin/kill -WINCH ${MAINPID} # We want systemd to give httpd some time to finish gracefully, but still want # it to kill httpd after TimeoutStopSec if something went wrong during the # graceful stop. Normally, Systemd sends SIGTERM signal right after the # ExecStop, which would kill httpd. We are sending useless SIGCONT here to give # httpd time to finish. KillSignal=SIGCONT PrivateTmp=true [Install] WantedBy=sme-server.target