[Pkg-voip-commits] r4511 - in /asterisk/trunk/debian: README.Debian asterisk.default asterisk.init changelog

tzafrir-guest at alioth.debian.org tzafrir-guest at alioth.debian.org
Wed Sep 19 08:55:28 UTC 2007


Author: tzafrir-guest
Date: Wed Sep 19 08:55:28 2007
New Revision: 4511

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=4511
Log:
Support increasing open files limit from init.d script.

Modified:
    asterisk/trunk/debian/README.Debian
    asterisk/trunk/debian/asterisk.default
    asterisk/trunk/debian/asterisk.init
    asterisk/trunk/debian/changelog

Modified: asterisk/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/README.Debian?rev=4511&op=diff
==============================================================================
--- asterisk/trunk/debian/README.Debian (original)
+++ asterisk/trunk/debian/README.Debian Wed Sep 19 08:55:28 2007
@@ -56,6 +56,15 @@
 	http://www.asteriskdocs.org/ (Asterisk Handbook)
 
 
+Open Files Limit
+===============
+Asterisk uses one filehandle (and aometime more) per call. Hence if you 
+have many simultanious calls, you often bump into the per-process limit 
+of 1024 file handles, and get the error: "Too man open files".
+
+To enlarge that limit, set: MAXFILES in /etc/default/zaptel.
+
+
 Enjoy your PBX!
 
 Kilian Krause (for the pkg-voip team)

Modified: asterisk/trunk/debian/asterisk.default
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/asterisk.default?rev=4511&op=diff
==============================================================================
--- asterisk/trunk/debian/asterisk.default (original)
+++ asterisk/trunk/debian/asterisk.default Wed Sep 19 08:55:28 2007
@@ -26,7 +26,11 @@
 #             with properly starting and stopping Asterisk.
 #RUNASTSAFE=yes
 #
-# 
+#
+# MAXFILES: Set this to the number of open file handles the Asterisk 
+#           process can have. Useful if you get "Too many open files" error.
+#MAXFILES=8192
+#
 # AST_DUMPCORE: if set to anything other than "no", asterisk will be run with
 #               the option -g (to tell it to dump core on crash) and its
 #               working directory will be set to /var/spool/asterisk, as that

Modified: asterisk/trunk/debian/asterisk.init
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/asterisk.init?rev=4511&op=diff
==============================================================================
--- asterisk/trunk/debian/asterisk.init (original)
+++ asterisk/trunk/debian/asterisk.init Wed Sep 19 08:55:28 2007
@@ -114,6 +114,12 @@
 if [ "$UMASK" != '' ]
 then
 	umask $UMASK
+fi
+
+# allow changing the per-process open files limit:
+if [ "$MAXFILES" != '' ]
+then
+	ulimit -n $MAXFILES
 fi
 
 status() {

Modified: asterisk/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/changelog?rev=4511&op=diff
==============================================================================
--- asterisk/trunk/debian/changelog (original)
+++ asterisk/trunk/debian/changelog Wed Sep 19 08:55:28 2007
@@ -23,7 +23,10 @@
   * Update backports scripts for libcurl4*-dev
   * Fix IMAP crash with upstream source snipplet. (Closes: #440187)
 
- -- Faidon Liambotis <paravoid at debian.org>  Wed, 12 Sep 2007 03:46:25 +0300
+  [ Tzafrir Cohen ]
+  * Support increasing open files limit from init.d script.
+
+ -- Tzafrir Cohen <tzafrir.cohens at xorcom.com>  Wed, 19 Sep 2007 10:50:48 +0200
 
 asterisk (1:1.4.11~dfsg-1) unstable; urgency=low
 




More information about the Pkg-voip-commits mailing list