9fd165c00e843b4e2a520efe7781f1c4494e7cc7
[genesis.git] / compass / deploy / ansible / roles / ha / files / galera_chk
1 #! /bin/sh
2
3 code=`mysql -uroot -e "show status" | awk '/Threads_running/{print $2}'`
4
5 if [ "$code"=="1" ]
6 then
7     echo "HTTP/1.1 200 OK\r\n"
8 else
9     echo "HTTP/1.1 503 Service Unavailable\r\n"
10 fi