blob: 5cc872a9215e2e477ab861f44feb7ce08ccf398f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
# Check that all members of a cluster are running
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 -cp $port" > /dev/null || {
ret=1
echo "ERROR: broker not running $host:$port"
}
done
exit $ret
|