From b4313699df0f6a27e2e74ce048097f525798ffad Mon Sep 17 00:00:00 2001 From: ppom Date: Thu, 12 Feb 2026 12:00:00 +0100 Subject: [PATCH] systemd: Let reaction stop its subprocesses before killing them systemd by default send SIGTERM to all processes in the cgroup, which doesn't let reaction handle the shutdown of its plugins. This is fixed by adding KillMode=mixed. --- config/reaction.service | 2 ++ packaging/reaction.service | 2 ++ 2 files changed, 4 insertions(+) diff --git a/config/reaction.service b/config/reaction.service index 0e72a1c..897e869 100644 --- a/config/reaction.service +++ b/config/reaction.service @@ -15,6 +15,8 @@ StateDirectory=reaction RuntimeDirectory=reaction # Start reaction in its state directory WorkingDirectory=/var/lib/reaction +# Let reaction kill its child processes first +KillMode=mixed [Install] WantedBy=multi-user.target diff --git a/packaging/reaction.service b/packaging/reaction.service index 3003b85..5bd1478 100644 --- a/packaging/reaction.service +++ b/packaging/reaction.service @@ -15,6 +15,8 @@ StateDirectory=reaction RuntimeDirectory=reaction # Start reaction in its state directory WorkingDirectory=/var/lib/reaction +# Let reaction kill its child processes first +KillMode=mixed [Install] WantedBy=multi-user.target