Skip to content

Commit

Permalink
Merge pull request #365 from a-b/364-healthcheck-ignore-exitcode-7
Browse files Browse the repository at this point in the history
Make Nginx healthcheck script to tolerate unavailability
  • Loading branch information
sethboyles authored Jan 2, 2024
2 parents 533f852 + d045b40 commit fb33b8a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ while true; do
status=$?
set -e
if [[ $status > 0 ]] ; then
echo $(date --rfc-3339=ns) "ccng_monit_http_healthcheck failed to curl <${URL}>: exit code $status"
exit $status
echo "$(date --rfc-3339=ns) ccng_monit_http_healthcheck failed to curl <${URL}>: exit code $status"
if [[ $status != 7 ]] ; then
exit $status
fi
fi
sleep 10
done

0 comments on commit fb33b8a

Please sign in to comment.