[rabbitmq-discuss] Fedora init script modification for ulimit

Emile Joubert emile at rabbitmq.com
Mon Apr 15 09:46:46 BST 2013


Hi,

On 12/04/13 12:37, Thomas Oulevey wrote:
> +++ b/packaging/RPMS/Fedora/rabbitmq-server.init    Fri Apr 12 13:29:26 

> +       if [ -n "$RABBITMQ_NOFILES_LIMIT" ]; then
> +            ulimit -n "$RABBITMQ_NOFILES_LIMIT"
> +        fi


The way this is intended to work is that /etc/default/rabbitmq-server is
sourced from the startup script
(http://hg.rabbitmq.com/rabbitmq-server/file/105d6265b42d/packaging/RPMS/Fedora/rabbitmq-server.init#l40)

    [ -f /etc/default/${NAME} ] && . /etc/default/${NAME}

and that /etc/default/rabbitmq-server contains the commands to execute, e.g.

    ulimit -n 1024

That should work without needing a patch.



-Emile







More information about the rabbitmq-discuss mailing list