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:
parent
1b061fc9d5
commit
c1672218b1
2 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue