From eb0873eee070cedb6ba5a3d3ec3030a21b029e91 Mon Sep 17 00:00:00 2001 From: Tom Kazimiers Date: Fri, 28 Jun 2024 14:47:33 +0200 Subject: [PATCH] Docker: fix RabbitMQ startup --- scripts/docker/catmaid-entry.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/docker/catmaid-entry.sh b/scripts/docker/catmaid-entry.sh index ddaf765d28..7a6e6b5d4d 100644 --- a/scripts/docker/catmaid-entry.sh +++ b/scripts/docker/catmaid-entry.sh @@ -190,7 +190,9 @@ init_catmaid () { echo "Starting RabbitMQ" mkdir -p /var/run/rabbitmq chown rabbitmq /var/run/rabbitmq - service rabbitmq-server start + # Ideally, we'd start RabbitMQ like the following, but this just hangs + # without log files being created: service rabbitmq-server start + /sbin/runuser -u rabbitmq -- /usr/sbin/rabbitmq-server -detached until wget --spider -t1 -T1 -O /dev/null -q 127.0.0.1:5672; do sleep 0.1 done