Skip to content

The agent that grows with you

docs: Windows gateway stop is marker+drain, not TerminateProcess

teknium1eb0903176b01
diff --git a/hermes_cli/gateway.py b/hermes_cli/gateway.py
index b74d41611ab..1d7fff6fd78 100644
--- a/hermes_cli/gateway.py
+++ b/hermes_cli/gateway.py
@@ -1793,7 +1793,8 @@ def _force_kill_survivors(survivors, *, kill=None) -> None:
kill = kill or os.kill
for pid in survivors:
logger.warning(
- "Gateway PID %s did not exit within %.0fs of SIGTERM — sending "
+ "Gateway PID %s did not exit within %.0fs of the stop request (SIGTERM, or the planned-stop "
+ "marker on Windows) — sending "
"SIGKILL. A kill during a WAL checkpoint can corrupt state.db; "
"the next start will run an integrity check.",
pid, _ORPHAN_EXIT_GRACE_SECONDS,
diff --git a/website/docs/user-guide/windows-native.md b/website/docs/user-guide/windows-native.md
index 69c2726a9de..99cb490a8fe 100644
--- a/website/docs/user-guide/windows-native.md
+++ b/website/docs/user-guide/windows-native.md
@@ -187,8 +187,8 @@ Flags used when spawning: `DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP | CREATE_
```powershell
hermes gateway status # Merged view: schtasks + Startup folder + running PID
hermes gateway start # Starts the scheduled task now
-hermes gateway stop # Graceful SIGTERM equivalent (TerminateProcess via psutil)
-hermes gateway restart
+hermes gateway stop # Writes the planned-stop marker, waits for the gateway to drain (≤ agent.restart_drain_timeout, capped at 30 s), then force-kills only if it is still alive
+hermes gateway restart # Same drain-first stop, then a fresh start
hermes gateway uninstall # Removes schtasks entry, Startup shortcut, pid file
```