Skip to content

The agent that grows with you

fix(process): drop OOMPolicy from systemd-run --scope argv

gkd2323c611ee856c53f
diff --git a/tools/process_registry.py b/tools/process_registry.py
index afdd52a0e7f..474f97e39eb 100644
--- a/tools/process_registry.py
+++ b/tools/process_registry.py
@@ -131,7 +131,6 @@ def _systemd_scope_argv(binary: str, unit_name: str, *argv: str) -> List[str]:
binary, "--user", "--scope", "--quiet", "--unit", unit_name, "--collect",
"--property", "MemoryAccounting=yes",
"--property", f"MemoryMax={_worker_memory_max_bytes()}",
- "--property", "OOMPolicy=kill",
"--", *argv,
]