[rabbitmq-discuss] Fedora init script modification for ulimit
Thomas Oulevey
thomas.oulevey at cern.ch
Fri Apr 12 12:37:15 BST 2013
Hi,
I'd like to submit the following patch.
Please note I submit a similar one for EPEL:
https://bugzilla.redhat.com/show_bug.cgi?id=951518
$ hg diff
diff -r f5c0fb06384a packaging/RPMS/Fedora/rabbitmq-server.init
--- a/packaging/RPMS/Fedora/rabbitmq-server.init Wed Apr 10 11:57:54
2013 +0100
+++ b/packaging/RPMS/Fedora/rabbitmq-server.init Fri Apr 12 13:29:26
2013 +0200
@@ -60,6 +60,13 @@
else
RETVAL=0
ensure_pid_dir
+
+ # RABBIT_NOFILES_LIMIT from /etc/default/rabbitmq-server is not handled
+ # automatically
+ if [ -n "$RABBITMQ_NOFILES_LIMIT" ]; then
+ ulimit -n "$RABBITMQ_NOFILES_LIMIT"
+ fi
+
set +e
RABBITMQ_PID_FILE=$PID_FILE $START_PROG $DAEMON \
> "${INIT_LOG_DIR}/startup_log" \
PS: Is there an other way to submit patch ?
More information about the rabbitmq-discuss
mailing list