From f6afed79c8618f02431bdd9d3ca25e75deef184e Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 4 Oct 2007 15:32:45 +0000 Subject: * docs/man/qpidd.x: Explain configuration options. * etc/qpidd.conf: Placeholder configuration file. * qpidc.spec.in: Install qpidd.conf * Makefile.am: Install qpidd.conf * src/qpid/Options.cpp, h, src/qpidd.cpp: Option formatting fixes. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@581951 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/Makefile.am | 4 +++- qpid/cpp/docs/man/qpidd.x | 36 +++++++++++++++++++++++++++++++++--- qpid/cpp/etc/qpidd.conf | 2 ++ qpid/cpp/qpidc.spec.in | 7 ++++++- qpid/cpp/src/qpid/Options.cpp | 16 ++++++++++++---- qpid/cpp/src/qpid/Options.h | 3 ++- qpid/cpp/src/qpidd.cpp | 3 +-- 7 files changed, 59 insertions(+), 12 deletions(-) create mode 100644 qpid/cpp/etc/qpidd.conf (limited to 'qpid/cpp') diff --git a/qpid/cpp/Makefile.am b/qpid/cpp/Makefile.am index cd2f3a8dc8..42fc47ba5f 100644 --- a/qpid/cpp/Makefile.am +++ b/qpid/cpp/Makefile.am @@ -5,11 +5,13 @@ SPEC=$(PACKAGE).spec EXTRA_DIST = \ LICENSE NOTICE README RELEASE_NOTES\ - etc/qpidd \ + etc/qpidd etc/qpidd.conf \ $(SPEC) $(SPEC).in \ rpm/README.qpidd-devel \ xml/cluster.xml +sysconf_DATA = etc/qpidd.conf + SUBDIRS = src docs/api docs/man examples # Update libtool, if needed. diff --git a/qpid/cpp/docs/man/qpidd.x b/qpid/cpp/docs/man/qpidd.x index 91d3c3a969..5d4ce974e1 100644 --- a/qpid/cpp/docs/man/qpidd.x +++ b/qpid/cpp/docs/man/qpidd.x @@ -1,16 +1,46 @@ [NAME] + qpidd \- the Qpid AMQP broker daemon +[SYNOPSIS] + +qpidd [options] + [DESCRIPTION] -Start the AMQP broker. The broker options can be specified on the command line (e.g. --worker-threads 10), in an environment variable (e.g. export QPID_WORKER_THREADS=10), or as a line in a configuration file (e.g. worker-threads=10). +An AMQP broker daemon that stores, routes and forwards messages via +the AMQP protocol. + +[OPTIONS] + +Options may be specified via command line, environment variable or configuration file. See FILES and ENVIRONMENT below for details. + +[FILES] +.I /etc/qpidd.conf +.RS +Default configuration file. +.RE -Command line options take precedence over environment variables, which -take precedence over the config file. +Configuration file settings are over-ridden by command line or environment variable settings. '--config ' or 'export QPID_CONFIG=' specifies an alternate file. +Each line is a name=value pair. Blank lines and lines beginning with # are ignored. For example: + # My qpidd configuration file. + port=6000 + max-connections=10 + log.output=stdout + log.output=/tmp/qpidd.log +[ENVIRONMENT] +.I QPID_