mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-06 18:18:52 +08:00
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.
11 lines
225 B
SYSTEMD
11 lines
225 B
SYSTEMD
[Unit]
|
|
Description=HTTP/2 experimental proxy
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
ExecStart=@bindir@/nghttpx --conf=/etc/nghttpx/nghttpx.conf --pid-file=/run/nghttpx.pid --daemon
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|