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

16 lines
299 B
Plaintext
Raw Normal View History

2018-01-11 16:36:57 +01:00
#!/sbin/openrc-run
2018-09-13 16:05:13 +02:00
description="RabbitMQ container"
2018-01-11 16:36:57 +01:00
start() {
2018-09-13 16:05:13 +02:00
lxc-start rabbitmq
2018-01-11 16:36:57 +01:00
}
2018-07-10 16:48:20 +02:00
start_post() {
2018-09-13 16:05:13 +02:00
timeout -t 60 sh -c 'until grep -q "Server startup complete" /var/lib/lxc/rabbitmq/delta0/var/log/rabbitmq/rabbit@rabbitmq.log 2>/dev/null; do usleep 50000; done'
2018-07-10 16:48:20 +02:00
}
2018-01-11 16:36:57 +01:00
stop() {
2018-09-13 16:05:13 +02:00
lxc-stop rabbitmq
2018-01-11 16:36:57 +01:00
}