mirror of
https://framagit.org/ppom/reaction
synced 2026-03-14 12:45:47 +01:00
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:
parent
270c6cb969
commit
b4313699df
2 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue