On 02/12/2015 16:23, César wrote:
> Hi all,
Hi!
> And the error message in startup_err
>
> [root@ms1dot90 ~]# cat /var/log/rabbitmq/startup_err
> /usr/lib64/rabbitmq/bin/rabbitmq-server: line 42: /var/run/rabbitmq/pid:
> Cannot allocate memory
>
> I was wondering if there would be any way to make the execution fail
> straight away?
"rabbitmqctl wait /path/to/pid" is designed to:
1. wait for the creation of the pidfile
2. wait for RabbitMQ to start in the node designated by this PID
We must do this because when "rabbitmqctl wait" is started, the pidfile
may not have been created yet. The problem with this design is we can't
distinguish this from a node which will not start at all (ie. no pidfile
is created).
"rabbitmqctl wait" could watch for the node to appear but the problem is
the same. Perhaps we could have a wrapper who records the fact that
"node $node should run in the near future" and clears this record when
the startup script returns, and rabbitmqct would watch this record. I
don't know if that would work. I will file an issue.
--
Jean-Sébastien Pédron
Pivotal / RabbitMQ