Skip to content

Instantly share code, notes, and snippets.

@markruler
Last active August 16, 2022 04:48
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