fix(bridge): unscramble colibri_bridge health/status functions
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:
parent
c66f6dfe4c
commit
29141bfbc5
1 changed files with 3 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue