[rabbitmq-discuss] Runit running Rabbit
brendan at soundcloud.com
Tue Jun 26 17:04:47 BST 2012
If you are familiar with Procfiles/foreman/.env then you can see how I've
setup a 2 node test rig here:
The vars were pilfered from here:
and here: http://www.rabbitmq.com/relocate.html
You can use the RABBITMQ prefixed env variables to change the respective
node's mnesia dirs and so on by re-exporting them in your runit scripts (or
using the rabbitmq-env.config, which you would also need to export from the
I use a standard runit service setup (via the standard chef runit cookbook
+ 'runit_service' definition) with the /etc/service/rabbitmq/run script
rendered somewhat as follows:
# ulimit and other shenanigans here ..
ulimit -n 102400
# Export all the RABBITMQ prefixed variables here ..
# Export the chptst -u user's HOME
exec chpst -u rabbitmq /usr/local/sbin/rabbitmq-server
Hope that helps,
On Tue, Jun 26, 2012 at 5:51 PM, Richard Jones <rj at metabrew.com> wrote:
> I'm trying to hack a chef cookbook for rabbit so it can start multiple
> rabbitmq instances on the same machine, managed by runit
> Rabbit startup fairly involved compared to most services - does anyone
> have an example of starting rabbit under runit, or managing multiple
> rabbit instances on one machine, or any other simplified way to start
> and manage rabbit?
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss