run plugins in the same slice as reaction

And reaction should be started in system-reaction.slice.
The plugins could then be grouped together with the daemon
This commit is contained in:
ppom 2026-02-20 12:00:00 +01:00
commit 0cd765251a
No known key found for this signature in database

View file

@ -172,6 +172,8 @@ impl Plugin {
let mut command = Command::new("run0");
// --pipe gives direct, non-emulated stdio access, for better performance.
command.arg("--pipe");
// run the command inside the same slice as reaction
command.arg("--slice-intherit");
// Make path absolute for systemd
let full_workdir = path::absolute(&plugin_working_directory)?;