Skip to content

Instantly share code, notes, and snippets.

@markruler
Last active August 16, 2022 04:48
Show Gist options
  • Save markruler/814488d60355f2e75bc04dfc48c56da2 to your computer and use it in GitHub Desktop.
Save markruler/814488d60355f2e75bc04dfc48c56da2 to your computer and use it in GitHub Desktop.
healthcheck
#!/usr/bin/env bash
while ! curl --silent --output /dev/null --head --fail --max-time 3 --location ${1}; do
echo "Healthchecking...${1}"
sleep 2
done
@markruler
Copy link
Author

healthcheck example.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment