packages: varnish/varnish.sysconfig - update

glen glen at pld-linux.org
Mon Jul 20 14:14:05 CEST 2009


Author: glen                         Date: Mon Jul 20 12:14:05 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- update

---- Files affected:
packages/varnish:
   varnish.sysconfig (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: packages/varnish/varnish.sysconfig
diff -u packages/varnish/varnish.sysconfig:1.5 packages/varnish/varnish.sysconfig:1.6
--- packages/varnish/varnish.sysconfig:1.5	Wed Aug 22 23:40:10 2007
+++ packages/varnish/varnish.sysconfig	Mon Jul 20 14:14:00 2009
@@ -6,7 +6,12 @@
 
 # Maximum number of open files (for ulimit -n)
 # Open files (usually 1024, which is way too small for varnish)
-SERVICE_LIMITS="-n 131072"
+NFILES=131072
+
+# Maxiumum locked memory size for shared memory log
+MEMLOCK=82000
+
+SERVICE_LIMITS="-n $NFILES -l $MEMLOCK"
 
 # Advanced configuration
 #
@@ -15,8 +20,10 @@
 # Main configuration file. You probably want to change it :)
 VARNISH_VCL_CONF=/etc/varnish/default.vcl
 
+INSTANCE=$(uname -n)
+
 # Name of this system / path to spool file
-VARNISH_NAME=/var/run/varnish/pldmachine
+VARNISH_NAME=/var/run/varnish/$INSTANCE
 
 # Default address and port to bind to
 # Blank address means all IPv4 and IPv6 interfaces, otherwise specify
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/varnish/varnish.sysconfig?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list