Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ods/scripts/health-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ test_service() {
local port="$default_port"
[[ -n "$port_env" ]] && port="${!port_env:-$default_port}"

# Host-network services share the host netns; no Docker-mapped port to probe.
[[ "${SERVICE_HOST_NETWORK[$sid]:-}" == "1" ]] && return 0

[[ -z "$health" || "$port" == "0" ]] && return 1

# Check container state first (if docker available)
Expand Down
Loading