summaryrefslogtreecommitdiff
path: root/cpp/etc
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2012-04-16 19:20:15 +0000
committerAlan Conway <aconway@apache.org>2012-04-16 19:20:15 +0000
commitebce8e9e3569d34fe2e4bc39513b82066e283488 (patch)
tree618d4d8881ec1f53562b9a4ed7c698b98d2ddeb9 /cpp/etc
parent1609087d23203adc166875dba431d6fee53a3d3a (diff)
downloadqpid-python-ebce8e9e3569d34fe2e4bc39513b82066e283488.tar.gz
QPID-3603: Minor improvements to HA tests, documentation and examples.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1326755 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/etc')
-rw-r--r--cpp/etc/cluster.conf-example.xml.in27
-rwxr-xr-xcpp/etc/qpidd.in7
2 files changed, 16 insertions, 18 deletions
diff --git a/cpp/etc/cluster.conf-example.xml.in b/cpp/etc/cluster.conf-example.xml.in
index eb70ebbb1e..14b961a363 100644
--- a/cpp/etc/cluster.conf-example.xml.in
+++ b/cpp/etc/cluster.conf-example.xml.in
@@ -2,36 +2,33 @@
<!--
This is an example of a cluster.conf file to run qpidd HA under rgmanager.
This example assumes a 3 node cluster, with nodes named node1, node2 and node3.
+
+NOTE: fencing is not shown, it should be configured in a real cluster configuration.
-->
<cluster name="qpid-test" config_version="18">
- <!-- The cluster has 3 nodes. Each has a unique nodid and one vote for quorum. -->
+ <!-- The cluster has 3 nodes. Each has a unique nodid and one vote
+ for quorum. -->
<clusternodes>
- <clusternode name="node1" nodeid="1">
- <fence/>
- </clusternode>
- <clusternode name="node2" nodeid="2">
- <fence/>
- </clusternode>
- <clusternode name="node3" nodeid="3">
- <fence/>
- </clusternode>
+ <clusternode name="node1.example.com" nodeid="1"/>
+ <clusternode name="node2.example.com" nodeid="2"/>
+ <clusternode name="node3.example.com" nodeid="3"/>
</clusternodes>
<!-- Resouce Manager configuration. -->
- <rm log_level="7"> <!-- Verbose logging -->
+ <rm>
<!--
There is a failoverdomain for each node containing just that node.
- This lets us stipulate that the qpidd service should always run on all nodes.
+ This lets us stipulate that the qpidd service should always run on each node.
-->
<failoverdomains>
<failoverdomain name="node1-domain" restricted="1">
- <failoverdomainnode name="node1"/>
+ <failoverdomainnode name="node1.example.com"/>
</failoverdomain>
<failoverdomain name="node2-domain" restricted="1">
- <failoverdomainnode name="node2"/>
+ <failoverdomainnode name="node2.example.com"/>
</failoverdomain>
<failoverdomain name="node3-domain" restricted="1">
- <failoverdomainnode name="node3"/>
+ <failoverdomainnode name="node3.example.com"/>
</failoverdomain>
</failoverdomains>
diff --git a/cpp/etc/qpidd.in b/cpp/etc/qpidd.in
index 23c15283dc..2b43625b7d 100755
--- a/cpp/etc/qpidd.in
+++ b/cpp/etc/qpidd.in
@@ -39,13 +39,14 @@ prog=qpidd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/qpidd.pid
-# Source function library.
-. /etc/rc.d/init.d/functions
-
+# Source configuration
if [ -f !!sysconfdir!!/sysconfig/$prog ] ; then
. !!sysconfdir!!/sysconfig/$prog
fi
+# Source function library.
+. /etc/rc.d/init.d/functions
+
RETVAL=0
#ensure binary is present and executable