Skip to content

Instantly share code, notes, and snippets.

@duthied
Created April 17, 2020 19:10
Show Gist options
  • Save duthied/0592449faed1dd64485e6630ea0385d4 to your computer and use it in GitHub Desktop.
Save duthied/0592449faed1dd64485e6630ea0385d4 to your computer and use it in GitHub Desktop.
#!/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