NousResearch/hermes-agent

Gateway exit code on intentional systemd stops

Cluster 24344 · gateway · Bug. Data as of

6 open items. Fix attempted, not merged.

The short answer

2open issues
4open PRs
9items grouped
Known?
Yes. 9 related items grouped here, 1 issue already closed.
Fix event
No fix has been merged to main. 2 PRs closed without merging; see the attempts below.
Tracker
The maintainers' tracker marks this unresolved. That is separate from the fix event.

Members share one theme: the gateway reportedly exits with code 1 when stopped via systemctl stop, so systemd may show the unit in a failed state. Issues and pull requests propose treating such stops as planned, using approaches such as exit 0 on SIGTERM or an ExecStop-written planned-stop marker.

Open issues2

  • Issue#24344[Bug]: Systemd gateway service exits with status 1 on intentional stop
  • Issue#41631[Bug]: gateway exits code 1 (→ unit 'failed') on systemctl stop; planned stops should exit 0

Open PRs4

  • PR#24351fix(gateway): make intentional systemd stops exit cleanly
  • PR#41642fix(gateway): exit 0 on systemctl stop instead of exit 1 (failed unit)
  • PR#41690fix(gateway): exit 0 when systemd sends SIGTERM via systemctl stop
  • PR#42555fix(gateway): write planned-stop marker from systemd ExecStop

2 PRs closed without merging

From the close comments: stale or abandoned 1 · superseded by another PR 1

  • #41639 fix(gateway): treat SIGTERM under systemd as planned stop (exit 0) · superseded by another PR → #41642, #41631
  • #113358 fix(gateway): mark planned systemd stops · stale or abandoned → #24351, #42517, #42555, #85901
Closed issues · 1
  • Closed#42517fix(gateway): ExecStop should write planned-stop marker instead of inferring signal source
How this cluster was grouped
  • Link evidence (partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
  • Members outside that structural core may belong to a different underlying problem.
  • Pairwise link density 0.19: the share of item 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.

For your agent

The same facts, typed.