/[gentoo-x86]/www-servers/varnish/files/varnishd.initd
Gentoo

Contents of /www-servers/varnish/files/varnishd.initd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Aug 30 06:28:07 2009 UTC (5 years, 1 month ago) by hollow
Branch: MAIN
Changes since 1.6: +13 -7 lines
make HTTP_HDR_MAX_VAL configurable in case broken webapps set more than 32 headers; only start varnishncsa logging if desired
(Portage version: 2.2_rc33/cvs/Linux i686)

1 #!/sbin/runscript
2 # Copyright 1999-2006 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: /var/cvsroot/gentoo-x86/www-servers/varnish/files/varnishd.initd,v 1.6 2009/07/12 12:04:06 bangert Exp $
5
6 depend() {
7 need net
8 }
9
10 start() {
11 ebegin "Starting varnish"
12 #allow varnishd to lock logfile to memory
13 ulimit -l 82000
14 start-stop-daemon --quiet --start --pidfile /var/run/varnishd.pid --exec /usr/sbin/varnishd -- -P /var/run/varnishd.pid ${VARNISHD_OPTS} &> /dev/null
15 eend $?
16
17 if [ "${VARNISHNCSA_ARGS}" != "" ]; then
18 ebegin "Starting varnish logging"
19 start-stop-daemon --quiet --start --pidfile /var/run/varnishncsa.pid --exec /usr/bin/varnishncsa -- -D -P /var/run/varnishncsa.pid ${VARNISHNCSA_ARGS}
20 eend $?
21 fi
22 }
23
24 stop() {
25 ebegin "Stopping varnish"
26 start-stop-daemon --quiet --stop --pidfile /var/run/varnishd.pid
27 eend $?
28
29 if [ -e /var/run/varnishncsa.pid ]; then
30 ebegin "Stopping varnish logging"
31 start-stop-daemon --quiet --stop --pidfile /var/run/varnishncsa.pid
32 eend $?
33 fi
34 }

  ViewVC Help
Powered by ViewVC 1.1.20