I got an email this morning asking how to daemonize RabbitMQ when running with the STOMP adapter. It’s pretty simple really, all you need to do is add ‘-detached’ to the RABBIT_ARGS in the makefile.
Or you could replace the start_server task with this one:
start_server:
$(MAKE) -C $(RABBIT_SOURCE_ROOT)/erlang/rabbit run \
RABBIT_ARGS='-pa '"$$(pwd)/$(EBIN_DIR)"' -rabbit \
stomp_listeners [{\"0.0.0.0\",61613}] \
extra_startup_steps [{\"STOMP-listeners\" \
,rabbit_stomp,kickstart,[]}] -detached'
