From 6c89a7ed46813fe3457a02aa1c7d2721033a31da Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 23 Oct 2026 14:29:01 +0200 Subject: [PATCH] fix: restore PATH for systemd-run and use AllowedCPUs --- scripts/with-memory-cap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/with-memory-cap.sh b/scripts/with-memory-cap.sh index ec7dacf6..58c9d020 100755 --- a/scripts/with-memory-cap.sh +++ b/scripts/with-memory-cap.sh @@ -181,7 +181,7 @@ run_systemd() { # expliciet: deze host heeft geen swap. local high=$((effective * 95 / 100)) echo "[mem-cap] systemd cgroup MemoryHigh=$((high / 1024 / 1024))MB MemoryMax=$((effective / 1024 / 1024))MB MemorySwapMax=0: $*" >&2 - exec "${systemd_cmd[@]}" -p "MemoryHigh=$high" -p "MemoryMax=$effective" -p "MemorySwapMax=0" -p "CPUAffinity=$cpu_affinity" "$@" + exec "${systemd_cmd[@]}" -E "PATH=$PATH" -p "MemoryHigh=$high" -p "MemoryMax=$effective" -p "MemorySwapMax=0" -p "AllowedCPUs=$cpu_affinity" "$@" } run_ulimit() {