SOURCES: squid.sysconfig, squid.init - set ulimit -n via sysconfig
baggins
baggins at pld-linux.org
Fri Mar 3 22:21:41 CET 2006
Author: baggins Date: Fri Mar 3 21:21:41 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- set ulimit -n via sysconfig
---- Files affected:
SOURCES:
squid.sysconfig (1.7 -> 1.8) , squid.init (1.39 -> 1.40)
---- Diffs:
================================================================
Index: SOURCES/squid.sysconfig
diff -u SOURCES/squid.sysconfig:1.7 SOURCES/squid.sysconfig:1.8
--- SOURCES/squid.sysconfig:1.7 Mon Sep 5 22:36:50 2005
+++ SOURCES/squid.sysconfig Fri Mar 3 22:21:35 2006
@@ -3,6 +3,9 @@
# Try to define nice-level for running squid
SERVICE_RUN_NICE_LEVEL="+5"
+# Set number of open files(descriptors) to something sane
+SERVICE_LIMITS="-n 8192"
+
# default squid options
# -D disables initial dns checks. If you most likely will not to have an
# internet connection when you start squid, uncomment this
================================================================
Index: SOURCES/squid.init
diff -u SOURCES/squid.init:1.39 SOURCES/squid.init:1.40
--- SOURCES/squid.init:1.39 Mon Sep 5 22:39:22 2005
+++ SOURCES/squid.init Fri Mar 3 22:21:36 2006
@@ -64,7 +64,6 @@
# Check if the service is already running?
if [ ! -f /var/lock/subsys/squid ]; then
msg_starting Squid
- ulimit -n 8192
daemon $SERVICE_RUN_NICE_LEVEL squid $SQUID_OPTS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/squid
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/squid.sysconfig?r1=1.7&r2=1.8&f=u
http://cvs.pld-linux.org/SOURCES/squid.init?r1=1.39&r2=1.40&f=u
More information about the pld-cvs-commit
mailing list