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:
parent
d804780c25
commit
1cdd8b1c58
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue