# NousResearch/hermes-agent · systemd TimeoutStopSec cron drain budget sizing fix

## Open now

- Nothing open on GitHub.

A reported issue and several related fix attempts addressing the generated systemd unit's TimeoutStopSec not accounting for the cron drain timeout, causing premature SIGKILL during draining. The members represent the bug report and multiple iterations of the same patch.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #96445. Verify it addresses your case.
- **Recommended:** read PR #96445 (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: `resolved` · deciding PR(s): `pr-96445`. 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.40`: 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

- #94759: Generated systemd unit's TimeoutStopSec ignores cron_drain_timeout — systemd SIGKILLs an in-budget drain

## Prior & competing PRs

- **#96445: fix(gateway): size systemd TimeoutStopSec from the full stop budget incl. the cron drain floor (salvage of #94775)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `gateway/restart.py`, `gateway/run.py`, `gateway/shutdown_forensics.py`, `hermes_cli/gateway.py`, `tests/gateway/test_cron_drain_floor.py`, `tests/hermes_cli/test_gateway_service.py`
- **#94770: fix(gateway): size TimeoutStopSec from the full stop budget incl. the cron floor**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#94775`, `#94759`
- **#94775: fix(gateway): size systemd TimeoutStopSec from the full stop budget**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#96445`, `#94770`
- **#94808: fix(gateway): size systemd TimeoutStopSec from cron drain budget (#94759)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#94775`, `#94808`

## Fix status

- Merged to main in PR #96445 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-27`.
