# NousResearch/hermes-agent · launchd restart drain-aware SIGUSR1 signal path fix

## Open now

- Nothing open on GitHub.

These issues and PRs concern a bug where the macOS launchd-triggered gateway restart was not invoking the drain-aware SIGUSR1 graceful restart path, instead falling through to a non-drain SIGTERM. The members describe the problem and proposed fixes to wire the launchd restart correctly to the SIGUSR1 path.

## TL;DR

- 6 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 4 PR(s) closed without merging.
- A fix was merged to main in PR #124009. Verify it addresses your case.
- **Recommended:** read PR #124009 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.33`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #27745: macOS launchd: hermes gateway restart never invokes _graceful_restart_via_sigusr1, always takes non-drain SIGTERM path from fresh shells

## Prior & competing PRs

- **#124009: fix(gateway): restart wait no longer cuts off a cron drain (salvage #123878)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `gateway/restart.py`, `hermes_cli/gateway.py`, `hermes_cli/update_cmd_drain_report.py`, `hermes_cli/update_cmd_fleet.py`, `hermes_cli/update_receipt.py`, `tests/gateway/test_restart_after_turn.py`
- **#27781: fix(gateway): wire launchd_restart to drain-aware SIGUSR1 path (#27745)**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`
- **#35178: fix(gateway): use drain-aware SIGUSR1 in launchd_restart**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `7a76046a86`, `8afaab3703`, `#27745`, `#124009`
- **#36240: fix(cli): complete launchd restart after self-restart signal**. closed without merge
  - maintainer direction: category `volume_quota`; implication `active`
- **#77512: fix(gateway): use drain-aware SIGUSR1 in launchd restart from fresh shells**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `7a76046a86`, `8afaab3703`, `#124009`

## Fix status

- Merged to main in PR #124009 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-26`.
- Subsystem: `gateway`
