84a12d5ec4
RabbitMQ is a complete and highly reliable Enterprise Messaging System. The RabbitMQ client libraries and broker daemon can be used together to create an AMQP network, or used individually to bring the benefits of RabbitMQ to established networks. ok bernd@
15 lines
427 B
Plaintext
15 lines
427 B
Plaintext
To start RabbitMQ at boot and shut it down when the system goes down,
|
|
add the following lines to /etc/rc.local and /etc/rc.shutdown, respectively:
|
|
|
|
/etc/rc.local:
|
|
|
|
if [ -x ${TRUEPREFIX}/sbin/rabbitmq-server ]; then
|
|
echo -n ' rabbitmq'
|
|
install -d -o _rabbitmq /var/run/rabbitmq
|
|
su -l _rabbitmq -c "${TRUEPREFIX}/sbin/rabbitmq-server -detached"
|
|
fi
|
|
|
|
/etc/rc.shutdown:
|
|
|
|
su -l _rabbitmq -c "${TRUEPREFIX}/sbin/rabbitmqctl stop"
|