[omd-commits] OMD Git: omd: gearmand: increase open file limit

git version control git at mathias-kettner.de
Sat Sep 14 18:46:09 CEST 2013


Module:   omd
Branch:   master
Commit:   e9e3c20d3ea740341a4598c1ee4b7c20ed8491e8
URL:      http://omdistro.org/projects/omd/repository/revisions/e9e3c20d3ea740341a4598c1ee4b7c20ed8491e8

Author:   Sven Nierlein <Sven.Nierlein at consol.de>
Date:     Sat Sep 14 18:43:18 2013 +0200
Commiter: Sven Nierlein <sven at consol.de>
Date:     Sat Sep 14 18:44:36 2013 +0200

gearmand: increase open file limit

---

 Changelog                                  |    1 +
 packages/gearmand/skel/etc/init.d/gearmand |    3 +++
 2 files changed, 4 insertions(+)

diff --git a/Changelog b/Changelog
index 4cb8df2..1b76b17 100644
--- a/Changelog
+++ b/Changelog
@@ -13,6 +13,7 @@ This file documents the revision history for the Open Monitoring Distribution
           - Mod-Gearman: Update 1.4.10
           - Nagios: Init script kills whole process groups during "stop"
           - check_webinject: Update to 1.80
+          - gearmand: increase open files limit
 
 1.00     Jun 17 2013
           - Nagios: Update to 3.5.0
diff --git a/packages/gearmand/skel/etc/init.d/gearmand b/packages/gearmand/skel/etc/init.d/gearmand
index 722889b..44fef46 100644
--- a/packages/gearmand/skel/etc/init.d/gearmand
+++ b/packages/gearmand/skel/etc/init.d/gearmand
@@ -90,6 +90,9 @@ case "$1" in
             exit 1;
         fi
 
+        # gearman opens lot of connections, so increase default ulimit
+        ulimit -n 8192
+
         CMD="$DAEMON --port=$PORT --pid-file=$PIDFILE $OPTIONS --log-file=$LOGFILE --verbose=$LOGLEVEL --listen=$LISTEN"
         if [ "$WHO" = "root" ]; then
             # try to exec commands as user



More information about the omd-commits mailing list