From 56de2efea56c6e5f8d388f2d3c1e04190faa86f2 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 8 Jan 2025 16:31:20 -0500 Subject: [PATCH] Set KillMode=mixed Any child processes we fork are not long running, so they don't need their own individual SIGTERM. Doing things this way ensures that when we suppress SIGTERM for our process that's sufficient to ensure the whole unit runs uninterrupted. --- src/cli/bootupctl.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cli/bootupctl.rs b/src/cli/bootupctl.rs index ab86f9f8..8efa11bf 100644 --- a/src/cli/bootupctl.rs +++ b/src/cli/bootupctl.rs @@ -13,6 +13,10 @@ static SYSTEMD_ARGS_BOOTUPD: &[&str] = &[ "PrivateNetwork=yes", "--property", "ProtectHome=yes", + // While only our main process during update catches SIGTERM, we don't + // want systemd to send it to other processes. + "--property", + "KillMode=mixed", "--property", "MountFlags=slave", "--pipe",