From 4258411d57744232ae8c999a2cb15509ecca68a9 Mon Sep 17 00:00:00 2001 From: Hermes & Sam Date: Sun, 21 Jun 2026 11:01:36 +0200 Subject: [PATCH] fix(status): recognize FreeBSD rc.d in `hermes status` gateway fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `hermes status` showed "Manager: (not supported on this platform)" on FreeBSD because the gateway-status fallback only knew systemd/launchd (the primary get_gateway_runtime_snapshot() path raises on FreeBSD → this except branch). Add a freebsd branch reporting the rc.d service, matching the linux/darwin branch style. Cosmetic-only (the displayed manager line). A deeper fix — teaching get_gateway_runtime_snapshot()/gateway.py to actually probe the rc.d service (running/installed) so status reports real state — is a separate, larger change. py_compile clean. Co-Authored-By: Claude Opus 4.8 --- hermes_cli/status.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hermes_cli/status.py b/hermes_cli/status.py index 42c8a9531..43d2a6edf 100644 --- a/hermes_cli/status.py +++ b/hermes_cli/status.py @@ -501,6 +501,9 @@ def show_status(args): elif sys.platform == 'darwin': print(f" Status: {color('unknown', Colors.DIM)}") print(" Manager: launchd") + elif sys.platform.startswith('freebsd'): + print(f" Status: {color('unknown', Colors.DIM)}") + print(" Manager: rc.d (service hermes_daemon)") else: print(f" Status: {color('N/A', Colors.DIM)}") print(" Manager: (not supported on this platform)")