summaryrefslogtreecommitdiffstats
path: root/compass/deploy/ansible/openstack_juno/roles/ha/files/galera_chk
blob: 9fd165c00e843b4e2a520efe7781f1c4494e7cc7 (plain)
1
2
3
4
5
6
7
8
9
10
#! /bin/sh

code=`mysql -uroot -e "show status" | awk '/Threads_running/{print $2}'`

if [ "$code"=="1" ]
then
    echo "HTTP/1.1 200 OK\r\n"
else
    echo "HTTP/1.1 503 Service Unavailable\r\n"
fi