Skip to content

Commit

Permalink
Update healthcheck.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t authored Dec 9, 2023
1 parent ca25099 commit d09de53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rootfs/scripts/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ read -r ip_healthfailures < "$IP_RESOLVE_HEALTHFILE" || true

exitvalue=0
if [[ -n "$flow_healthfailures" ]] && (( flow_healthfailures >= FAILURES_TO_GO_UNHEALTHY )); then
"${s6wrap[@]}" --args echo "UNHEALTHY: No data is flowing to ${RADARSERVER:-adsb-in.1090mhz.uk}:${RADARPORT:-2227}/${TRANSPORT_PROTOCOL:-udp} - failure count since last successful measurement is $flow_healthfailures"
"${s6wrap[@]}" --args echo "UNHEALTHY: No data is flowing to ${RADARSERVER:-adsb-in.1090mhz.uk}:${RADARPORT:-5997}/${TRANSPORT_PROTOCOL:-udp} - failure count since last successful measurement is $flow_healthfailures"
exitvalue=1
fi
if [[ -n "$ip_healthfailures" ]] && (( ip_healthfailures >= FAILURES_TO_GO_UNHEALTHY )); then
"${s6wrap[@]}" --args echo "UNHEALTHY: Cannot resolve IP address for ${BEASTHOST:-ultrafeeder} - failure count since last successful measurement is $ip_healthfailures"
exitvalue=1
fi

exit $exitvalue
exit $exitvalue

0 comments on commit d09de53

Please sign in to comment.