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

20 lines
268 B
Plaintext
Raw Normal View History

2018-01-11 16:36:57 +01:00
#!/sbin/openrc-run
description="RabbitMQ docker container"
depend() {
need docker
2018-01-11 16:36:57 +01:00
}
start() {
/usr/bin/docker run -d --rm \
--name rabbitmq \
-h rabbitmq \
-v /srv/rabbitmq/data:/var/lib/rabbitmq/mnesia \
rabbitmq
2018-01-11 16:36:57 +01:00
}
stop() {
/usr/bin/docker stop rabbitmq
}