[rabbitmq-discuss] MacPort for RabbitMQ Server 1.5.3
cpettitt at gmail.com
Thu Feb 26 04:23:05 GMT 2009
I noticed that the latest version of RabbitMQ Server in the MacPorts
repo is version 1.3.0, so I've created a MacPort for RabbitMQ Server
1.5.3. I thought I would share it with this list. The MacPort is
I hope this will be of help to the community. If there is interest
from the RabbitMQ team I would be happy to submit it to the MacPorts
1. If you don't have a local MacPorts repo, set this up first .
2. Extract rabbitmq-1.5.3-macport.tar.gz to the root of your local
MacPorts repo (it will extract files to ./net/rabbitmq-server).
3. Run portindex in the root of your local MacPorts repo
4. Run: sudo port install rabbitmq-server
To start the server, you can either use launchctl (see instructions
emitted during MacPort install) or you can start it from the command
line with: sudo -H -u rabbitmq rabbitmq-server
rabbitmqctl automatically (through sudo) runs in the context of the
rabbitmq user so that the Erlang cookie can be read from
* The MacPort uses the install target to build and install the package
into the destroot. Hardcoded paths in the shell scripts are modified
to use the MacPort filesystem.
* I followed tonyg's approach of running the server under the
"rabbitmq" user. Unfortunately, the adduser command sets the shell for
the rabbitmq user to /dev/null, so using su was not working. I
switched this to use sudo -H -u rabbitmq, which does work in my
* When tonyg submitted the original MacPort he commented that calling
launchctl stop on the server would cause the process to exit and
restart. This appears to be the default behavior for launchd -
unloading it stops the reload process. I suspect setting KeepAlive to
false will have the same effect. In any case, I left it to restart
automatically, but I'm open to suggestions on the behavior.
More information about the rabbitmq-discuss