Commit 3ba24a8e authored by Martin Blix Grydeland's avatar Martin Blix Grydeland Committed by Dridi Boukelmoune

systemd: Use 'mixed' kill mode

When the killmode is 'process', only the mgt process is ever signalled
by systemd. If that fails to exit within TimeoutStopSec, we may leave
unresponsive processes till tearing themselves down. During a restart of
the service, that could lead to the old cache process still holding onto
resources like bound ports, preventing the new service from starting.

With 'mixed' mode instead, first SIGTERM is sent to the mgt process only
(found through its PID file), but all the processes in the group will be
sent SIGKILL after TimeoutStopSec, and systemd will wait for them all to
exit.
Signed-off-by: 's avatarDridi Boukelmoune <dridi.boukelmoune@gmail.com>
parent 97e0d670
......@@ -4,7 +4,7 @@ After=network-online.target nss-lookup.target
[Service]
Type=forking
KillMode=process
KillMode=mixed
# Maximum number of open files (for ulimit -n)
LimitNOFILE=131072
......
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