Created
December 1, 2023 08:59
-
-
Save iromu/2bca8255f4954a93d92055d557a740fa 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
#!/usr/bin/env bash | |
if ! [ -x "$(command -v wget)" ]; then | |
curl --fail --silent localhost:8080/actuator/health/liveness | grep UP || exit 1 | |
else | |
wget --no-verbose --tries=1 -qO - localhost:8080/actuator/health/liveness | grep UP || exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment