set systemd settings similar to lighttpd2

except that HUP does not reload lighttpd 1.4.x config
Those who only use systemd lighttpd service 'reload' to rotate
access log files might choose to add a command to send lighttpd a
HUP signal.  See github pull request (below) for further discussion.

[patch edited by gstrauss]

x-ref:
  https://github.com/lighttpd/lighttpd1.4/pull/72
personal/stbuehler/mod-csrf
sugilog 2016-11-02 10:56:15 +09:00 committed by Glenn Strauss
parent 4481489078
commit 331ac4f177
1 changed files with 3 additions and 1 deletions

View File

@ -3,8 +3,10 @@ Description=Lighttpd Daemon
After=network.target
[Service]
ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf
Type=simple
ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
Restart=on-failure
[Install]
WantedBy=multi-user.target