WEFT_OS/crates
Marco Allegretti 71b7bdf657 feat(appd): wrap runtime in systemd-run cgroup scope when user session is active
supervise() checks /systemd/private to detect an active
user systemd session. When present (and WEFT_DISABLE_CGROUP is unset),
the runtime binary is launched via:

  systemd-run --user --scope --wait --collect --slice=weft-apps.slice     -p CPUQuota=200% -p MemoryMax=512M -- <bin> ...

This places each app in a transient weft-apps.slice scope with default
resource limits from the blueprint. The --wait flag keeps systemd-run
alive so child.wait()/child.kill() remain correct.

When no user session is present the command is built directly as before.
WEFT_DISABLE_CGROUP=1 bypasses the wrapping unconditionally.
2026-03-11 15:25:04 +01:00
..
weft-appd feat(appd): wrap runtime in systemd-run cgroup scope when user session is active 2026-03-11 15:25:04 +01:00
weft-build-meta Initialize Rust workspace and repository metadata 2026-03-10 18:47:06 +01:00
weft-compositor feat(protocol): add wl_surface arg to create_window in weft-shell-unstable-v1 2026-03-11 14:33:17 +01:00
weft-ipc-types feat(ipc-types): add weft-ipc-types crate with compositor-appd message types and frame framing 2026-03-11 14:17:48 +01:00
weft-pack feat(appd,pack): capability dispatch -- map wapp.toml capabilities to --preopen args 2026-03-11 15:20:51 +01:00
weft-runtime feat(runtime): add weft:app/notify WIT package and notify-ready host interface 2026-03-11 15:15:11 +01:00
weft-servo-shell feat(servo-shell): implement weft-shell-protocol Wayland client 2026-03-11 14:59:58 +01:00