The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(cli): update _get_service_pids docs for profile-scoped systemd filtering
Teknium9f8557a09f05
diff --git a/hermes_cli/gateway.py b/hermes_cli/gateway.pyindex 2460ebe182b..87fc8d02a1a 100644--- a/hermes_cli/gateway.py+++ b/hermes_cli/gateway.py@@ -131,13 +131,15 @@ def _get_service_pids(all_profiles: bool = False) -> set:manual processes and killed. Default-scope callers (``gateway status``,cron checks) keep seeing only the current profile's service; the orphanreaper passes all_profiles=True for the same friendly-fire reason. The- systemd branch has always been fleet-wide (``hermes-gateway*``) and is- unaffected.+ systemd branch mirrors this: default scope filters to the current+ profile's exact unit name; ``all_profiles=True`` widens to the+ ``hermes-gateway*`` fleet glob."""pids: set = set()# --- systemd (Linux): user and system scopes ---- # systemd always lists every hermes-gateway* unit regardless of scope.+ # Default scope lists only this profile's unit (the unit name encodes the+ # profile via get_service_name()); all_profiles widens to the fleet glob.if supports_systemd_services():if all_profiles:pattern = "hermes-gateway*"