Skip to content

fix(status): detect gateway process when running as PID 1 in Docker/Kubernetes#4792

Open
ygd58 wants to merge 1 commit intoNousResearch:mainfrom
ygd58:fix/gateway-status-docker-pid1
Open

fix(status): detect gateway process when running as PID 1 in Docker/Kubernetes#4792
ygd58 wants to merge 1 commit intoNousResearch:mainfrom
ygd58:fix/gateway-status-docker-pid1

Conversation

@ygd58
Copy link
Copy Markdown
Contributor

@ygd58 ygd58 commented Apr 3, 2026

Fixes #4776

Problem

hermes status reported gateway as "stopped" in Docker/Kubernetes because it only checked systemctl --user is-active, which returns "inactive" when gateway runs as PID 1 (not via systemd).

Fix

Added process-based fallback using pgrep when systemd reports inactive. Shows "direct process (non-systemd)" as manager label when detected this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: hermes status reports Gateway as 'stopped' when running as PID 1 in Docker/Kubernetes

1 participant