fix(sync): stop server unit as a full cgroup

This commit is contained in:
Brad Stein 2026-04-27 22:17:34 -03:00
parent ecc5b6df87
commit 898947a2b5
6 changed files with 11 additions and 7 deletions

6
Cargo.lock generated
View File

@ -1642,7 +1642,7 @@ checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
[[package]]
name = "lesavka_client"
version = "0.14.31"
version = "0.14.32"
dependencies = [
"anyhow",
"async-stream",
@ -1676,7 +1676,7 @@ dependencies = [
[[package]]
name = "lesavka_common"
version = "0.14.31"
version = "0.14.32"
dependencies = [
"anyhow",
"base64",
@ -1688,7 +1688,7 @@ dependencies = [
[[package]]
name = "lesavka_server"
version = "0.14.31"
version = "0.14.32"
dependencies = [
"anyhow",
"base64",

View File

@ -4,7 +4,7 @@ path = "src/main.rs"
[package]
name = "lesavka_client"
version = "0.14.31"
version = "0.14.32"
edition = "2024"
[dependencies]

View File

@ -1,6 +1,6 @@
[package]
name = "lesavka_common"
version = "0.14.31"
version = "0.14.32"
edition = "2024"
build = "build.rs"

View File

@ -618,7 +618,7 @@ ExecStartPre=/usr/local/bin/lesavka-core.sh --attach
ExecStart=/usr/local/bin/lesavka-server
TimeoutStopSec=10
KillSignal=SIGTERM
KillMode=process
KillMode=control-group
Restart=always
Environment=RUST_LOG=lesavka_server=info,lesavka_server::audio=info,lesavka_server::video=debug,lesavka_server::gadget=info
Environment=RUST_BACKTRACE=1

View File

@ -10,7 +10,7 @@ bench = false
[package]
name = "lesavka_server"
version = "0.14.31"
version = "0.14.32"
edition = "2024"
autobins = false

View File

@ -90,6 +90,10 @@ fn server_install_pins_hdmi_camera_and_display_defaults() {
SERVER_INSTALL.contains("KillMode=control-group"),
"install script should stop the whole UVC helper cgroup instead of leaving child processes behind"
);
assert!(
!SERVER_INSTALL.contains("KillMode=process"),
"install script should not leave the server or helper units in process-only kill mode"
);
assert!(
SERVER_INSTALL.contains("lesavka-uvc already active; runtime settings unchanged."),
"install script should avoid unnecessary UVC restarts when nothing changed"