summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Powell <steve@rabbitmq.com>2012-04-23 13:15:26 +0100
committerSteve Powell <steve@rabbitmq.com>2012-04-23 13:15:26 +0100
commit8419ee59ff50511be70b11ac91f1350b696b5eac (patch)
tree13be31851a336834e290c41b93942717f20f50af
parent31dece5bbc7d7832f3766f23e9d99d891df4e75e (diff)
downloadrabbitmq-server-8419ee59ff50511be70b11ac91f1350b696b5eac.tar.gz
Add ulimit default file to debian package installation and source it on server start.
-rw-r--r--packaging/common/rabbitmq-server.init2
-rw-r--r--packaging/debs/Debian/debian/rabbitmq-server.default26
-rw-r--r--packaging/debs/Debian/debian/rules1
3 files changed, 29 insertions, 0 deletions
diff --git a/packaging/common/rabbitmq-server.init b/packaging/common/rabbitmq-server.init
index c942f8e3..40238c8e 100644
--- a/packaging/common/rabbitmq-server.init
+++ b/packaging/common/rabbitmq-server.init
@@ -35,6 +35,8 @@ test -x $CONTROL || exit 0
RETVAL=0
set -e
+[ -f /etc/default/${NAME} ] && . /etc/default/${NAME}
+
ensure_pid_dir () {
PID_DIR=`dirname ${PID_FILE}`
if [ ! -d ${PID_DIR} ] ; then
diff --git a/packaging/debs/Debian/debian/rabbitmq-server.default b/packaging/debs/Debian/debian/rabbitmq-server.default
new file mode 100644
index 00000000..6efa1b98
--- /dev/null
+++ b/packaging/debs/Debian/debian/rabbitmq-server.default
@@ -0,0 +1,26 @@
+## The contents of this file are subject to the Mozilla Public License
+## Version 1.1 (the "License"); you may not use this file except in
+## compliance with the License. You may obtain a copy of the License
+## at http://www.mozilla.org/MPL/
+##
+## Software distributed under the License is distributed on an "AS IS"
+## basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+## the License for the specific language governing rights and
+## limitations under the License.
+##
+## The Original Code is RabbitMQ.
+##
+## The Initial Developer of the Original Code is VMware, Inc.
+## Copyright (c) 2012 VMware, Inc. All rights reserved.
+
+# This file is /etc/default/rabbitmq-server and is designed to allow
+# adjustment of system limits for the rabbitmq-server service process.
+
+# Refer to the system documentation for ulimit (in man bash).
+
+# open file handles
+#ulimit -n 1024
+
+# The rabbitmq-server service must be restarted for these settings to
+# be used. This file is installed when the package is installed and is
+# not preserved on upgrade. \ No newline at end of file
diff --git a/packaging/debs/Debian/debian/rules b/packaging/debs/Debian/debian/rules
index 108b1ed5..16f68931 100644
--- a/packaging/debs/Debian/debian/rules
+++ b/packaging/debs/Debian/debian/rules
@@ -19,3 +19,4 @@ install/rabbitmq-server::
done
sed -e 's|@RABBIT_LIB@|/usr/lib/rabbitmq/lib/rabbitmq_server-$(DEB_UPSTREAM_VERSION)|g' <debian/postrm.in >debian/postrm
install -p -D -m 0755 debian/rabbitmq-server.ocf $(DEB_DESTDIR)usr/lib/ocf/resource.d/rabbitmq/rabbitmq-server
+ install -p -D -m 0755 debian/rabbitmq-server.default $(DEB_DESTDIR)etc/default/rabbitmq-server