Skip to content

Commit

Permalink
Set KillMode=mixed
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cgwalters committed Jan 8, 2025
1 parent 1784dde commit 56de2ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cli/bootupctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 56de2ef

Please sign in to comment.