Created
April 17, 2020 19:10
-
-
Save duthied/0592449faed1dd64485e6630ea0385d4 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>liveness-log.out 2>&1 | |
echo "--START LIVENESS--" | |
while :; do | |
echo "`date`" | |
time curl -s http://localhost:3000/liveness | |
sleep 1; | |
echo "------------" | |
echo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment