Fix daemon upgrade when running under systemd

Systemd assumes that service of type simple is stopped when the main
process exits. This causes systemd to kill all nghttpx processes when
doing a process upgrade (via USR2/QUIT signals). Change the service
type to forking which behaves correctly on upgrade.
This commit is contained in:
Janusz Dziemidowicz 2015-09-25 15:01:02 +02:00
parent d804780c25
commit 1cdd8b1c58
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@ Description=HTTP/2 experimental proxy
After=network.target After=network.target
[Service] [Service]
Type=simple Type=forking
ExecStart=@bindir@/nghttpx --errorlog-syslog ExecStart=@bindir@/nghttpx --conf=/etc/nghttpx/nghttpx.conf --pid-file=/run/nghttpx.pid --daemon
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target