fix(bridge): unscramble colibri_bridge health/status functions
Some checks are pending
CI / rust (pull_request) Waiting to run
CI / markdown (pull_request) Waiting to run
CI / port (pull_request) Waiting to run
CI / agent-jail-pkgs (pull_request) Waiting to run

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).
This commit is contained in:
Sam & Claude 2026-06-26 00:51:20 +02:00
parent c66f6dfe4c
commit 29141bfbc5

View file

@ -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"