Files
smeserver-BackupPC/root/usr/lib/systemd/system/httpd-bkpc.service
Jean-Philippe Pialasse b2ab500ef3 * Thu Oct 30 2025 Jean-Philippe Pialasse <jpp@koozali.org> 0.2-22.sme
- remove sv files, rewrite systemd unit [SME: 11517]
- remove /var/log/httpd-bkpc/ [SME: 12197]
- remove logfiles2timestamp [SME: 12196]
2025-10-30 17:42:27 -04:00

23 lines
798 B
Desktop File

[Unit]
Description=BackupPC web page
After=network.target
[Service]
Type=notify
ExecStartPre=/sbin/e-smith/service-status httpd-bkpc
ExecStartPre=/sbin/e-smith/expand-template /etc/httpd/bkpc-conf/httpd.conf
ExecStart=/usr/sbin/httpd -f /etc/httpd/bkpc-conf/httpd.conf -DFOREGROUND
ExecReload=/usr/sbin/httpd -f /etc/httpd/bkpc-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