diff --git a/root/etc/s6-overlay/s6-rc.d/rabbitmq/run b/root/etc/s6-overlay/s6-rc.d/rabbitmq/run index e7e6d7e..ed091a1 100644 --- a/root/etc/s6-overlay/s6-rc.d/rabbitmq/run +++ b/root/etc/s6-overlay/s6-rc.d/rabbitmq/run @@ -3,5 +3,8 @@ export HOME=/var/lib/rabbitmq export PATH=$PATH:/opt/rabbitmq/sbin +# Limit max open file descriptors or else RabbitMQ wont't start (#96) +[ $(ulimit -n) -gt 65536 ] && ulimit -n 65536 + echo "Starting rabbitmq-server..." s6-setuidgid unms rabbitmq-server