SOURCES: squid.sysconfig, squid.init - add SQUID_FD_LIMIT variable...
dzimi
dzimi at pld-linux.org
Tue Oct 30 22:53:25 CET 2007
Author: dzimi Date: Tue Oct 30 21:53:25 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- add SQUID_FD_LIMIT variable for set how many file descriptors available for squid. Default is 8192
---- Files affected:
SOURCES:
squid.sysconfig (1.9 -> 1.10) , squid.init (1.41 -> 1.42)
---- Diffs:
================================================================
Index: SOURCES/squid.sysconfig
diff -u SOURCES/squid.sysconfig:1.9 SOURCES/squid.sysconfig:1.10
--- SOURCES/squid.sysconfig:1.9 Sun Mar 5 02:11:59 2006
+++ SOURCES/squid.sysconfig Tue Oct 30 22:53:20 2007
@@ -10,3 +10,6 @@
# maximum time (in seconds) to wait for squid to stop
SQUID_SHUTDOWN_TIMEOUT="60"
+
+# file description limit for squid
+SQUID_FD_LIMIT="8192"
================================================================
Index: SOURCES/squid.init
diff -u SOURCES/squid.init:1.41 SOURCES/squid.init:1.42
--- SOURCES/squid.init:1.41 Tue Sep 18 14:01:31 2007
+++ SOURCES/squid.init Tue Oct 30 22:53:20 2007
@@ -58,6 +58,8 @@
# Check if the service is already running?
if [ ! -f /var/lock/subsys/squid ]; then
msg_starting Squid
+ # get FD limit from /etc/sysconfig/squid and set FD limit for squid
+ ulimit -SHn $SQUID_FD_LIMIT
daemon $SERVICE_RUN_NICE_LEVEL squid $SQUID_OPTS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/squid
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/squid.sysconfig?r1=1.9&r2=1.10&f=u
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/squid.init?r1=1.41&r2=1.42&f=u
More information about the pld-cvs-commit
mailing list