diff options
Diffstat (limited to 'qpid/cpp/src/tests/start_cluster')
| -rwxr-xr-x | qpid/cpp/src/tests/start_cluster | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/start_cluster b/qpid/cpp/src/tests/start_cluster index c2806bb225..8f44854978 100755 --- a/qpid/cpp/src/tests/start_cluster +++ b/qpid/cpp/src/tests/start_cluster @@ -6,14 +6,14 @@ test -f cluster.ports && { echo "cluster.ports file already exists" ; exit 1; } test -z "$*" && { echo "Usage: $0 cluster-size [options]"; exit 1; } +rm -f cluster*.log cluster.ports SIZE=$1 shift OPTS=$* - +CLUSTER=`whoami` # Cluster name=user name, avoid clashes. for (( i=0; i<SIZE; ++i )); do - PORT=`../qpidd -dp0 --log.output=broker$i.log $OPTS` || exit 1 - PORTS="$PORT $PORTS" + PORT=`../qpidd -dp0 --log.output=cluster$i.log --cluster $CLUSTER $OPTS` || exit 1 + echo $PORT >> cluster.ports done -echo $PORTS > cluster.ports |
