add error detection to healthcheck
This commit is contained in:
parent
9b834a5ba6
commit
38b2357e65
@ -6,4 +6,9 @@ URL=http://localhost
|
|||||||
wget --quiet --tries=1 --spider ${URL}
|
wget --quiet --tries=1 --spider ${URL}
|
||||||
[ $? -ne 0 ] && exit 1
|
[ $? -ne 0 ] && exit 1
|
||||||
|
|
||||||
|
CONTENT=$(wget --quiet -O - ${URL})
|
||||||
|
case "$CONTENT" in
|
||||||
|
*"Internal Error"*) exit 1 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user