diff options
Diffstat (limited to 'cpp/src/tests/cluster_test/cluster_stop')
| -rwxr-xr-x | cpp/src/tests/cluster_test/cluster_stop | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cpp/src/tests/cluster_test/cluster_stop b/cpp/src/tests/cluster_test/cluster_stop new file mode 100755 index 0000000000..d4543d2d4a --- /dev/null +++ b/cpp/src/tests/cluster_test/cluster_stop @@ -0,0 +1,18 @@ +#!/bin/sh +# Stop the cluster. + +source config.sh + +HOSTS=(`cat $CLUSTER_HOME/hosts`) +PORTS=(`cat $CLUSTER_HOME/ports`) + +for ((i=0; i<${#HOSTS[*]}; ++i)); do + host=${HOSTS[$i]} + port=${PORTS[$i]} + ssh $host "$QPIDD -qp $port" > /dev/null || { + ret=1 + echo "ERROR: stopping broker at $host:$port" + } +done + +exit $ret |
