fix: suppress ping stderr output

This commit is contained in:
Gergely Koloszar 2025-10-24 12:35:56 +00:00
parent cbc131028f
commit cc73f23c1c

View File

@ -503,7 +503,7 @@ check_availability() {
if [[ $2 ]]; then
timeout_sec=$2
fi
if ! ping -w "$timeout_sec" "$url" > /dev/null; then
if ! ping -w "$timeout_sec" "$url" > /dev/null 2>&1; then
logger WARN "Failed to reach $url, service may be down."
return 1
fi