mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-27 01:13:09 +00:00
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. |
||
|---|---|---|
| .. | ||
| weft-appd | ||
| weft-build-meta | ||
| weft-compositor | ||
| weft-ipc-types | ||
| weft-pack | ||
| weft-runtime | ||
| weft-servo-shell | ||