NetBSD Problem Report #44457

From www@NetBSD.org  Tue Jan 25 05:01:43 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 75C5563B883
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 25 Jan 2011 05:01:43 +0000 (UTC)
Message-Id: <20110125050142.A797463B873@www.NetBSD.org>
Date: Tue, 25 Jan 2011 05:01:42 +0000 (UTC)
From: fkruchio@gmail.com
Reply-To: fkruchio@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Small bugs in the www/varnish/ package
X-Send-Pr-Version: www-1.0

>Number:         44457
>Category:       pkg
>Synopsis:       Small bugs in the www/varnish/ package
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 25 05:05:00 +0000 2011
>Closed-Date:    Mon Aug 10 08:09:21 +0000 2015
>Last-Modified:  Mon Aug 10 08:09:21 +0000 2015
>Originator:     Frank Kruchio
>Release:        5.1.0_PATCH
>Organization:
IBM
>Environment:
NetBSD maci.home.gotdns.com 5.1.0_PATCH NetBSD 5.1.0_PATCH (MYKERNEL) #0: Tue Nov 30 22:06:06 NZDT 2010  root@maci.home.gotdns.com:/usr/obj/sys/arch/i386/compile/MYKERNEL i386
>Description:
A small bug in the start scripts of the varnish package.

These 

maci: [/etc/rc.d] # fgrep commands_a /usr/pkg/share/examples/rc.d/varnish*
/usr/pkg/share/examples/rc.d/varnishlog:commands_args="-D"
/usr/pkg/share/examples/rc.d/varnishncsa:commands_args="-D"

should be

command_args="-D"

But while we are at it, can we please have the following added to
/usr/pkg/share/examples/rc.d/varnishd

command_args="-f /usr/pkg/etc/varnish/default.vcl -s malloc,128M"

and a note on installation that the shared memory settings need to be increased for example

## Shared Memory used by Varnish 64MB
## changed 8MB to 80MB
kern.ipc.shmmax=83886080

#the below is the default in 4Kb pages = 80MB
kern.ipc.shmmaxpgs=20480

I hope I have this all correct, please confirm, thanks !

>How-To-Repeat:
Install varnish and try to start it on servers with less then 2GB RAM
>Fix:
replace commands_args="-D" with command_args="-D" and add to varnishd

command_args="-f /usr/pkg/etc/varnish/default.vcl -s malloc,128M"

I realize 128MB is not going to suit most people, perhaps a message pointing users to this setting after install or a more sensible value.



>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-i386-maintainer->pkg-manager
Responsible-Changed-By: asau@NetBSD.org
Responsible-Changed-When: Tue, 25 Jan 2011 05:14:18 +0000
Responsible-Changed-Why:
It belongs to "pkg" category.


From: "Sergey Svishchev" <shattered@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/44457 CVS commit: pkgsrc/www/varnish
Date: Wed, 31 Aug 2011 21:12:17 +0000

 Module Name:	pkgsrc
 Committed By:	shattered
 Date:		Wed Aug 31 21:12:17 UTC 2011

 Modified Files:
 	pkgsrc/www/varnish: Makefile
 	pkgsrc/www/varnish/files: varnishlog.sh varnishncsa.sh

 Log Message:
 PR/44457 -- fix rc.d scripts.


 To generate a diff of this commit:
 cvs rdiff -u -r1.10 -r1.11 pkgsrc/www/varnish/Makefile
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/www/varnish/files/varnishlog.sh \
     pkgsrc/www/varnish/files/varnishncsa.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 10 Aug 2015 08:09:21 +0000
State-Changed-Why:
Committed in 2011, should have been closed out then...


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.