summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/start_cluster
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-06-25 20:51:30 +0000
committerAlan Conway <aconway@apache.org>2008-06-25 20:51:30 +0000
commit23b153214d057627be9d00f8cc14280cd89eb95b (patch)
tree150a06aa11744b1187ed51bd3154c8e9b9eb19ac /qpid/cpp/src/tests/start_cluster
parent4f72761ff1c309fca15956d1860b165530d3d353 (diff)
downloadqpid-python-23b153214d057627be9d00f8cc14280cd89eb95b.tar.gz
Additions to the client API:
- SubscriptionManager::get(queue) to get a single message from a queue. - Set FlowControl per-subscription. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@671655 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/start_cluster')
-rwxr-xr-xqpid/cpp/src/tests/start_cluster8
1 files changed, 7 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/start_cluster b/qpid/cpp/src/tests/start_cluster
index 876913bc2d..46ecbad9c5 100755
--- a/qpid/cpp/src/tests/start_cluster
+++ b/qpid/cpp/src/tests/start_cluster
@@ -3,6 +3,12 @@
# Print the cluster's URL.
#
+# Execute command with the ais group set.
+with_ais_group() {
+ id -nG | grep '\<ais\>' >/dev/null || { echo "You are not a member of the ais group."; exit 1; }
+ echo $* | newgrp ais
+}
+
test -f cluster.ports && { echo "cluster.ports file already exists" ; exit 1; }
test -z "$*" && { echo "Usage: $0 cluster-size [options]"; exit 1; }
@@ -13,7 +19,7 @@ CLUSTER=`whoami` # Cluster name=user name, avoid clashes.
OPTS="--load-module ../.libs/libqpidcluster.so -dp0 --log-output=cluster$i.log --cluster-name=$CLUSTER --no-data-dir --auth=no $*"
for (( i=0; i<SIZE; ++i )); do
- PORT=`../qpidd $OPTS` || exit 1
+ PORT=`with_ais_group ../qpidd $OPTS` || exit 1
echo $PORT >> cluster.ports
done