blob: c85efc3c17bd37aded017d74f2222b7488f8bc1c [file] [log] [blame]
jasmineWen85d9d732018-03-06 16:13:35 +00001
Priyanka Jainc07e1d12018-05-03 12:52:04 +00002NAME=$(/consul/bin/kubectl -n {{ include "common.namespace" . }} get pod | grep -o "aai-data-router[^[:space:]]*")
jasmineWen85d9d732018-03-06 16:13:35 +00003
4if [ -n "$NAME" ]; then
Priyanka Jainc07e1d12018-05-03 12:52:04 +00005 if /consul/bin/kubectl -n {{ include "common.namespace" . }} exec -it $NAME -- ps -efww | grep 'java' | grep 'data-router' > /dev/null; then
jasmineWen85d9d732018-03-06 16:13:35 +00006
7 echo Success. Synapse process is running. 2>&1
8 exit 0
9 else
10 echo Failed. Synapse process is not running. 2>&1
11 exit 1
12 fi
13else
14 echo Failed. Synapse container is offline. 2>&1
15 exit 1
16fi