1
2
3
4
5
6
7
8
9
10
11
12
| #!/bin/sh
|
| curl -siu admin:admin123 http://localhost:8081/service/metrics/healthcheck | grep healthy | grep true
| RESPONSE=$?
|
| if [ "$RESPONSE" = "0" ] ; then
| echo "******** liveness is Alive ********"
| exit 0;
| else
| echo "******** liveness is Dead ********"
| exit 1;
| fi
|
|