hive-bash-mcp: run tasks under bash instead of sh
This commit is contained in:
parent
5a06d1156b
commit
2d97401fc0
3 changed files with 11 additions and 7 deletions
|
|
@ -1419,14 +1419,14 @@ in
|
|||
systemd.services.hive-bash-daemon = {
|
||||
description = "bash task runner daemon for hive-bash-mcp";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
# The daemon runs every bash task via `Command::new("sh")` and the
|
||||
# The daemon runs every bash task via `Command::new("bash")` and the
|
||||
# commands themselves (hive-forge, git, jq, …) resolve from PATH.
|
||||
# Pre-split this ran inside hive-ag3nt.service and inherited the
|
||||
# agent's PATH; the standalone daemon needs the same or `sh` itself
|
||||
# agent's PATH; the standalone daemon needs the same or `bash` itself
|
||||
# isn't found (spawn fails with ENOENT, the task is marked done in
|
||||
# 0s with no output / no .out/.err). Mirror the harness unit's PATH:
|
||||
# NixOS appends `/bin` to each entry → /run/wrappers/bin (setuid
|
||||
# sudo) + /run/current-system/sw/bin (sh, coreutils, hive-forge, …).
|
||||
# sudo) + /run/current-system/sw/bin (bash, coreutils, hive-forge, …).
|
||||
path = [
|
||||
"/run/wrappers"
|
||||
"/run/current-system/sw"
|
||||
|
|
|
|||
Loading…
Reference in a new issue