[rabbitmq-discuss] RHEL init script rabbitmqctl status

Simon MacMullen simon at rabbitmq.com
Tue Feb 5 10:25:49 GMT 2013


On 05/02/13 03:36, Nigel Benns wrote:
> the startup script for RHEL requires that the rabbitmqctl status command
> returns a non zero code if the server is down.

Yes...

# /usr/sbin/rabbitmqctl status
Status of node rabbit at misscorporate ...
Error: unable to connect to node rabbit at misscorporate: nodedown

DIAGNOSTICS
===========

nodes in question: [rabbit at misscorporate]

hosts, their running nodes and ports:
- misscorporate: [{rabbitmqctl3349,33827}]

current node details:
- node name: rabbitmqctl3349 at misscorporate
- home dir: /var/lib/rabbitmq
- cookie hash: ZKeuRAz4wbII6wR8itQT0Q==

# echo $?
2

> Due to this the startup script always says that the server is currently
> running and fails to start.

So I can't reproduce this.

I tested this with RabbitMQ 3.0.2 and Erlang R14B on CentOS 5.5. You?

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list