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