Ronen <narkisr at gmail.com> writes:
Hey fellow rabbitmq users, Im setting up a rabbitmq server on Redhat
using version 2.5.0,

Id like to monitor the rabbitmq process using monit which requires a
pid file, looking trough web posts they mention the /var/lib/rabbitmq/
pids as the source for the pid file however this folder doesn't
exits.

Any idea how to provide a pid file for monit without the pids folder?
Do something like:

setsid sh -c 'echo $$ >$PIDFILE ; exec rabbitmq-server </dev/null >$RABBITMQ_LOG_BASE/rabbitmq_startup_log 2>&1' &
rabbitmqctl wait >/dev/null 2>&1

David

--
David Wragg
Staff Engineer, RabbitMQ
VMware, Inc.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 7 | next ›
Discussion Overview
grouprabbitmq-discuss @
categoriesrabbitmq
postedJul 5, '11 at 12:33p
activeJul 5, '11 at 2:51p
posts7
users3
websiterabbitmq.com
irc#rabbitmq

People

Translate

site design / logo © 2022 Grokbase