From 29141bfbc511c0879ac02e39b763f2d5e229bed6 Mon Sep 17 00:00:00 2001 From: Sam & Claude Date: Fri, 26 Jun 2026 00:51:20 +0200 Subject: [PATCH] fix(bridge): unscramble colibri_bridge health/status functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three bugs in the FreeBSD rc.d script: - colibri_bridge_health() had an empty body — health check did nothing - tcolibri_bridge_health — stray 't' prefix, typo - Stray closing/opening braces scrambled colibri_bridge_status() into two detached blocks, breaking the pgrep + nc check health now delegates to status; status runs the full health check (pgrep for socat + nc smoke to the socket). --- packaging/freebsd/colibri_bridge.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/freebsd/colibri_bridge.in b/packaging/freebsd/colibri_bridge.in index 4f0eea5..2e95438 100644 --- a/packaging/freebsd/colibri_bridge.in +++ b/packaging/freebsd/colibri_bridge.in @@ -115,11 +115,11 @@ colibri_bridge_stop() health_cmd="colibri_bridge_health" colibri_bridge_health() +{ + colibri_bridge_status +} colibri_bridge_status() -{ -tcolibri_bridge_health -} { if ! pgrep -f "socat.*${colibri_bridge_listen_port}" >/dev/null 2>&1; then echo "colibri-bridge socat process not found"