Files
hermes-agent/website/docs/getting-started
alt-glitch 807b3f1081 fix(update): rewrite gateway launch files before any gateway starts
`hermes update` started paused gateways (and restarted the fleet) from the
service definitions the previous release wrote. A systemd user unit was only
regenerated by the new gateway at boot, after systemd had already started it
with the old unit's environment, and that boot-time rewrite ran while the
Node dependency step was recreating node_modules/.bin, so the unit it wrote
was already outdated.

Add hermes_cli/update_launch_files.py: one step that regenerates every
profile's launch files that differ from what the updated checkout generates
(systemd user units with daemon-reload, the system unit when run as root,
the plist of a launchd job that is not loaded, Windows .cmd/.vbs launcher
scripts compared by content). Each file is independent; a failure is
reported as the `launch_files` follow-up and the rest are still rewritten.

The update calls it once, from a new `after_dependencies` hook in
build_update_products: after the Python and Node dependencies are prepared
and before the paused-gateway restart and the product builds. A tail that
ends before that hook, and the historical-takeover finish, run it before the
fleet restart. Generated file contents are unchanged.
2026-11-07 00:01:43 -05:00
..