From 5a6c203c016daf752b30d3754bd2afc1073d9ef6 Mon Sep 17 00:00:00 2001 From: ppom Date: Fri, 27 Feb 2026 12:00:00 +0100 Subject: [PATCH] Add system-reaction.slice --- Cargo.toml | 2 ++ packaging/reaction.service | 4 +++- packaging/system-reaction.slice | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 packaging/system-reaction.slice diff --git a/Cargo.toml b/Cargo.toml index 39be1a6..66e95e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,6 +29,8 @@ assets = [ [ "target/release/reaction.bash", "/usr/share/bash-completion/completions/reaction", "644" ], [ "target/release/reaction.fish", "/usr/share/fish/completions/", "644" ], [ "target/release/_reaction", "/usr/share/zsh/vendor-completions/", "644" ], + # Slice + [ "packaging/system-reaction.slice", "/usr/lib/systemd/system/", "644" ], ] [dependencies] diff --git a/packaging/reaction.service b/packaging/reaction.service index 5bd1478..343015d 100644 --- a/packaging/reaction.service +++ b/packaging/reaction.service @@ -1,6 +1,6 @@ # vim: ft=systemd [Unit] -Description=A daemon that scans program outputs for repeated patterns, and takes action. +Description=reaction daemon Documentation=https://reaction.ppom.me # Ensure reaction will insert its chain after docker has inserted theirs. Only useful when iptables & docker are used # After=docker.service @@ -17,6 +17,8 @@ RuntimeDirectory=reaction WorkingDirectory=/var/lib/reaction # Let reaction kill its child processes first KillMode=mixed +# Put reaction in its own slice so that plugins can be grouped within. +Slice=system-reaction.slice [Install] WantedBy=multi-user.target diff --git a/packaging/system-reaction.slice b/packaging/system-reaction.slice new file mode 100644 index 0000000..732f276 --- /dev/null +++ b/packaging/system-reaction.slice @@ -0,0 +1 @@ +[Slice]