1
2
3
4
5
6
7
8
9
10
11
12
| #!/bin/sh
|
| curl -si localhost:8081/nexus/service/local/repositories | grep Central
| RESPONSE=$?
|
| if [ "$RESPONSE" = "0" ] ; then
| echo "******** liveness is Alive ********"
| exit 0;
| else
| echo "******** liveness is Dead ********"
| exit 1;
| fi
|
|