[omd-commits] OMD Git: omd: gearmand: lower max open files

git version control git at mathias-kettner.de
Sat Sep 21 11:34:55 CEST 2013


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

Author:   Sven Nierlein <Sven.Nierlein at consol.de>
Date:     Sun Sep 15 11:31:47 2013 +0200
Commiter: Sven Nierlein <sven at consol.de>
Date:     Fri Sep 20 01:15:07 2013 +0200

gearmand: lower max open files

---

 packages/gearmand/skel/etc/init.d/gearmand |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/gearmand/skel/etc/init.d/gearmand b/packages/gearmand/skel/etc/init.d/gearmand
index 3728f21..6bffb0b 100644
--- a/packages/gearmand/skel/etc/init.d/gearmand
+++ b/packages/gearmand/skel/etc/init.d/gearmand
@@ -91,7 +91,7 @@ case "$1" in
         fi
 
         # gearman opens lot of connections, so increase default ulimit
-        ulimit -n 4096
+        ulimit -n 2048 >/dev/null 2>&1
 
         CMD="$DAEMON --port=$PORT --pid-file=$PIDFILE $OPTIONS --log-file=$LOGFILE --verbose=$LOGLEVEL --listen=$LISTEN"
         if [ "$WHO" = "root" ]; then



More information about the omd-commits mailing list