From: Prodromos Gerakios Date: Mon, 20 Aug 2012 08:54:33 +0000 (+0300) Subject: added ping.sh X-Git-Url: https://code.grnet.gr/git/aquarium/commitdiff_plain/2d351deff80069fa24689bdf0bc544398bd77014 added ping.sh --- diff --git a/ping.sh b/ping.sh new file mode 100755 index 0000000..b87060a --- /dev/null +++ b/ping.sh @@ -0,0 +1,13 @@ +#!/bin/bash +function ping { + OUT=`curl -s http://localhost:8888/ping/$1 | grep PONG` + if [ "$OUT" != "PONG" ] ; + then + exit 1 + fi +} +ping aquarium +ping rabbitmq +ping imstore +ping rcstore +exit 0