Commit 1cdd8b1c authored by Janusz Dziemidowicz's avatar Janusz Dziemidowicz

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.
parent d804780c
...@@ -3,8 +3,8 @@ Description=HTTP/2 experimental proxy ...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment