projects
/
aquarium
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5084b26
)
added ping.sh
author
Prodromos Gerakios
<pgerakios@grnet.gr>
Mon, 20 Aug 2012 08:54:33 +0000
(11:54 +0300)
committer
Prodromos Gerakios
<pgerakios@grnet.gr>
Mon, 20 Aug 2012 08:54:33 +0000
(11:54 +0300)
ping.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/ping.sh
b/ping.sh
new file mode 100755
(executable)
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