Created
April 17, 2020 19:09
-
-
Save duthied/bbfa41ce742a9430296ab897a843f70b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
exec 3>&1 4>&2 | |
trap 'exec 2>&4 1>&3' 0 1 2 3 | |
exec 1>readiness-log.out 2>&1 | |
echo "--START READINESS--" | |
while :; do | |
echo "`date`" | |
time curl -s http://localhost:3000/readiness | |
sleep 1; | |
echo "------------" | |
echo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment