[rabbitmq-discuss] /var/lib/rabbitmq/pids

Matthew Sackman matthew at rabbitmq.com
Tue Jul 5 13:44:55 BST 2011


On Tue, Jul 05, 2011 at 05:33:02AM -0700, Ronen wrote:
> Any idea how to provide a pid file for monit without the pids folder?

$ rabbitmqctl status
Status of node rabbit at hazel ...
[{pid,30451},
 ...]

Yes, that will require some parsing to safely get that out (the order of
items in that list could potentially change), but a regex of
/{pid,\s*(\d+)/ (or some such) should be sufficient.

Matthew


More information about the rabbitmq-discuss mailing list