Watch
0
0
Fork
You've already forked hyperhive
0

hive-bash-daemon: keep sibling tasks alive when one is OOM-killed

systemd's default OOMPolicy=stop ends the whole unit when the kernel
kills any process in it; set continue, as hive-subagent-daemon does.
Module-eval case asserts it.
This commit is contained in:
atlas 2026-10-07 18:18:15 +02:00
commit c1672218b1
2 changed files with 12 additions and 0 deletions

View file

@ -353,6 +353,11 @@ in
# no stdio fallback — same reasoning as `hive-mcp-http` below.
Restart = "always";
RestartSec = 3;
# systemd's default `stop` tears the whole unit down when the kernel
# kills *any* process in its cgroup, so one OOM-killed task would
# take every running sibling task with it. `continue` scopes the
# loss to the process the kernel chose.
OOMPolicy = "continue";
User = userName;
Group = userName;
};