Shan Wang wrote:
On linux it seems qpidd -quite will shutdown the broker running on port
5672 by default. If I have more than one brokers running on the same
machine, how can I shutdown them gracefully by using qpidd commonds?

Specify the port in use, e.g. for 5673:

    qpidd --quit --port 5673

Now I'm stopping them by using kill, but that seems causing some trouble
on the next start, during which it would complain the following error:

That is also fine.

2009-jun-22 09:45:48 critical Daemon startup failed: Exchange already
exists: amq.direct (MessageStoreImpl.cpp:489)

2009-jun-22 09:45:48 critical Broker start-up failed: Daemon startup
failed: Exchange already exists: amq.direct (MessageStoreImpl.cpp:489)

This is a separate issue. In a clustered broker, you currently have to have an empty store for all but the first node in the cluster. This should be addressed in a future release (it is fixed on trunk I believe by moving the current store 'out the way' to a subfolder on startup if the node is not the first in the cluster). For now, when restarting a node, if it is not the first node in the cluster you have to do that manually.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to