Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/varnish/files: varnishd.initd
Date: Sun, 30 Aug 2009 01:19:09
Message-Id: E1MhdtX-0006rl-R1@stork.gentoo.org
1 hollow 09/08/30 06:28:07
2
3 Modified: varnishd.initd
4 Log:
5 make HTTP_HDR_MAX_VAL configurable in case broken webapps set more than 32 headers; only start varnishncsa logging if desired
6 (Portage version: 2.2_rc33/cvs/Linux i686)
7
8 Revision Changes Path
9 1.7 www-servers/varnish/files/varnishd.initd
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/varnish/files/varnishd.initd?rev=1.7&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/varnish/files/varnishd.initd?rev=1.7&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/varnish/files/varnishd.initd?r1=1.6&r2=1.7
14
15 Index: varnishd.initd
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/www-servers/varnish/files/varnishd.initd,v
18 retrieving revision 1.6
19 retrieving revision 1.7
20 diff -u -r1.6 -r1.7
21 --- varnishd.initd 12 Jul 2009 12:04:06 -0000 1.6
22 +++ varnishd.initd 30 Aug 2009 06:28:07 -0000 1.7
23 @@ -1,7 +1,7 @@
24 #!/sbin/runscript
25 # Copyright 1999-2006 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/files/varnishd.initd,v 1.6 2009/07/12 12:04:06 bangert Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/files/varnishd.initd,v 1.7 2009/08/30 06:28:07 hollow Exp $
29
30 depend() {
31 need net
32 @@ -13,16 +13,22 @@
33 ulimit -l 82000
34 start-stop-daemon --quiet --start --pidfile /var/run/varnishd.pid --exec /usr/sbin/varnishd -- -P /var/run/varnishd.pid ${VARNISHD_OPTS} &> /dev/null
35 eend $?
36 - ebegin "Starting varnish logging"
37 - start-stop-daemon --quiet --start --pidfile /var/run/varnishncsa.pid --exec /usr/bin/varnishncsa -- -D -P /var/run/varnishncsa.pid ${VARNISHNCSA_ARGS}
38 - eend $?
39 +
40 + if [ "${VARNISHNCSA_ARGS}" != "" ]; then
41 + ebegin "Starting varnish logging"
42 + start-stop-daemon --quiet --start --pidfile /var/run/varnishncsa.pid --exec /usr/bin/varnishncsa -- -D -P /var/run/varnishncsa.pid ${VARNISHNCSA_ARGS}
43 + eend $?
44 + fi
45 }
46
47 stop() {
48 ebegin "Stopping varnish"
49 start-stop-daemon --quiet --stop --pidfile /var/run/varnishd.pid
50 eend $?
51 - ebegin "Stopping varnish logging"
52 - start-stop-daemon --quiet --stop --pidfile /var/run/varnishncsa.pid
53 - eend $?
54 +
55 + if [ -e /var/run/varnishncsa.pid ]; then
56 + ebegin "Stopping varnish logging"
57 + start-stop-daemon --quiet --stop --pidfile /var/run/varnishncsa.pid
58 + eend $?
59 + fi
60 }