docs(process_registry): say in the argv helper why OOMPolicy is absent

This commit is contained in:
kshitijk4poor
2026-09-06 14:25:32 +05:30
committed by kshitij
parent 04885c25cf
commit 78fc943ca4

View File

@@ -126,7 +126,8 @@ def _worker_memory_max_bytes() -> int:
def _systemd_scope_argv(binary: str, unit_name: str, *argv: str) -> List[str]:
"""``systemd-run --user --scope`` argv shared by the probe and real spawns.
``--collect`` self-cleans the scope after exit; ``--unit`` names it for systemctl."""
``--collect`` self-cleans the scope after exit; ``--unit`` names it for systemctl.
No ``OOMPolicy=``: transient scopes reject it on systemd <253 (#102486)."""
return [
binary, "--user", "--scope", "--quiet", "--unit", unit_name, "--collect",
"--property", "MemoryAccounting=yes",