From ec95298000bde896a5dc28f3d8366ab49b9e5d6f Mon Sep 17 00:00:00 2001 From: ingvar Date: Fri, 7 Mar 2008 15:07:31 +0000 Subject: [PATCH] This is more pre-2.0 than 1.1.2+ git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2562 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/redhat/varnish.initrc | 3 +++ varnish-cache/redhat/varnish.spec | 4 ++-- varnish-cache/redhat/varnish.sysconfig | 4 ++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/varnish-cache/redhat/varnish.initrc b/varnish-cache/redhat/varnish.initrc index c287552b..8d3825b3 100755 --- a/varnish-cache/redhat/varnish.initrc +++ b/varnish-cache/redhat/varnish.initrc @@ -26,6 +26,9 @@ mkdir -p /var/run/varnish 2>/dev/null # Open files (usually 1024, which is way too small for varnish) ulimit -n ${NFILES:-131072} +# Varnish wants to lock shared memory log in memory. +ulimit -l ${MEMLOCK:-82000} + # See how we were called. case "$1" in start) diff --git a/varnish-cache/redhat/varnish.spec b/varnish-cache/redhat/varnish.spec index 26a6141a..5c306eb5 100644 --- a/varnish-cache/redhat/varnish.spec +++ b/varnish-cache/redhat/varnish.spec @@ -1,7 +1,7 @@ Summary: Varnish is a high-performance HTTP accelerator Name: varnish -Version: 1.1.2 -Release: 5%{?dist} +Version: 2.0 +Release: pre_svn20080307%{?dist} License: BSD Group: System Environment/Daemons URL: http://www.varnish-cache.org/ diff --git a/varnish-cache/redhat/varnish.sysconfig b/varnish-cache/redhat/varnish.sysconfig index 56dffb7f..aa1a6f3a 100644 --- a/varnish-cache/redhat/varnish.sysconfig +++ b/varnish-cache/redhat/varnish.sysconfig @@ -7,6 +7,10 @@ # Maximum number of open files (for ulimit -n) NFILES=131072 +# Locked shared memory (for ulimit -l) +# Default log size is 82MB + header +MEMLOCK=82000 + # This file contains 4 alternatives, please use only one. ## Alternative 1, Minimal configuration, no VCL -- 2.39.5