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.
This commit is contained in:
ppom 2026-02-12 12:00:00 +01:00
commit b4313699df
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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