Add wait loop for RabbitMQ

This commit is contained in:
Disassembler 2018-07-10 16:48:20 +02:00
parent 1fbc52372c
commit b1cb08a815
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -14,6 +14,10 @@ start() {
rabbitmq rabbitmq
} }
start_post() {
timeout -t 3 docker exec rabbitmq sh -c 'until grep -q "Server startup complete" /var/log/rabbitmq/rabbit@rabbitmq.log 2>/dev/null ; do usleep 50000; done'
}
stop() { stop() {
/usr/bin/docker stop rabbitmq /usr/bin/docker stop rabbitmq
} }