Skip to content

Commit

Permalink
Fixes issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
olafz committed Mar 21, 2013
1 parent 8ac2f51 commit cda8e89
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clustercheck
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,19 @@ then
# Shell return-code is 0
/bin/echo -en "HTTP/1.1 200 OK\r\n"
/bin/echo -en "Content-Type: text/plain\r\n"
/bin/echo -en "Connection: close\r\n"
/bin/echo -en "Content-Length: 40\r\n"
/bin/echo -en "\r\n"
/bin/echo -en "Percona XtraDB Cluster Node is synced.\r\n"
/bin/echo -en "\r\n"
exit 0
else
# Percona XtraDB Cluster node local state is not 'Synced' => return HTTP 503
# Shell return-code is 1
/bin/echo -en "HTTP/1.1 503 Service Unavailable\r\n"
/bin/echo -en "Content-Type: text/plain\r\n"
/bin/echo -en "Connection: close\r\n"
/bin/echo -en "Content-Length: 44\r\n"
/bin/echo -en "\r\n"
/bin/echo -en "Percona XtraDB Cluster Node is not synced.\r\n"
/bin/echo -en "\r\n"
exit 1
fi

0 comments on commit cda8e89

Please sign in to comment.