# NousResearch/hermes-agent · Gateway restart incorrectly overwrites service launcher

## Open now

- 1 issue, 2 PRs open on GitHub.
- #130116: hermes gateway restart from a cron job or tool subprocess rewrites the systemd unit to the environment's workspace launcher, which cannot start (package-managed install)
- PR #130125: fix(gateway): keep service launcher on canonical install
- PR #130141: Gateway restart from a cron job or tool no longer writes a service launcher that cannot boot (#130116)

These issues and fixes concern a bug where restarting the gateway via cron or subprocess tools causes the systemd unit to be rewritten with an incorrect launcher, breaking boot on package-managed installs. Related work also addresses refusing service definitions that launch staged dependency workspaces.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 1 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## 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.50`: 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.

## Open related issues

- #130116: hermes gateway restart from a cron job or tool subprocess rewrites the systemd unit to the environment's workspace launcher, which cannot start (package-managed install)

## Prior & competing PRs

- **#130125: fix(gateway): keep service launcher on canonical install**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `73ffaa8890`
  - files: `hermes_cli/gateway.py`, `hermes_cli/gateway_launchd.py`, `tests/hermes_cli/test_gateway_service.py`
- **#130141: Gateway restart from a cron job or tool no longer writes a service launcher that cannot boot (#130116)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `hermes_cli/gateway.py`, `pm/environments.py`, `tests/hermes_cli/test_gateway_service.py`, `tests/pm/test_staged_workspace_root.py`
- **#130188: fix(gateway): refuse service definitions launching a staged dependency workspace**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#130141`, `#130125`, `#130141`, `#130116`, `#130141`, `#130141`, `#130141`

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
