Spotter-VM/rabbitmq/etc/init.d/rabbitmq

21 lines
297 B
Plaintext
Executable File

#!/sbin/openrc-run
description="RabbitMQ docker container"
depend() {
need docker net
use dns logger netmount
}
start() {
/usr/bin/docker run -d --rm \
--name rabbitmq \
-h rabbitmq \
-v /srv/rabbitmq/data:/var/lib/rabbitmq/mnesia \
rabbitmq
}
stop() {
/usr/bin/docker stop rabbitmq
}