Created
October 30, 2023 16:24
-
-
Save iromu/cff6f94be2e587fb77230b1713433e6b 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 --spider 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