[packages/varnish/VARNISH_2_0] add VARNISHNCSA_OPTS config to add generic options to varnishncsa daemon
glen
glen at pld-linux.org
Wed Apr 3 20:32:07 CEST 2013
commit b0d8a64143991c18904a306813b78e626752849d
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Apr 3 21:18:14 2013 +0300
add VARNISHNCSA_OPTS config to add generic options to varnishncsa daemon
varnishncsa.init | 6 ++----
varnishncsa.sysconfig | 3 +++
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/varnishncsa.init b/varnishncsa.init
index 13f3cb8..1f728fe 100755
--- a/varnishncsa.init
+++ b/varnishncsa.init
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# varnishncsa Control the varnish nsca logging daemon
+# varnishncsa Control the varnish ncsa logging daemon
#
# chkconfig: 345 90 10
#
@@ -8,8 +8,6 @@
#
# processname: varnishncsa
# pidfile: /var/run/varnish/varnishncsa.pid
-#
-# $Id$
# Source function library
. /etc/rc.d/init.d/functions
@@ -48,7 +46,7 @@ start() {
fi
msg_starting "Varnish NCSA logging daemon"
- daemon --pidfile $pidfile /usr/bin/varnishncsa -a -w $logfile -D -P $pidfile $opts
+ daemon --pidfile $pidfile /usr/bin/varnishncsa -a -w $logfile -D -P $pidfile $opts $VARNISHNCSA_OPTS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/varnishncsa
}
diff --git a/varnishncsa.sysconfig b/varnishncsa.sysconfig
index 341dd3c..aca2254 100644
--- a/varnishncsa.sysconfig
+++ b/varnishncsa.sysconfig
@@ -11,3 +11,6 @@ LOG_BACKEND=no
# Include log entries which result from communication with a client.
LOG_CLIENT=yes
+
+# extra options to varnishncsa
+VARNISHNCSA_OPTS=
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/varnish.git/commitdiff/15d25fa47507e278e4a662099aca125d1d951ebd
More information about the pld-cvs-commit
mailing list