summaryrefslogtreecommitdiffstats
path: root/network/varnish/rc.varnishd
diff options
context:
space:
mode:
Diffstat (limited to 'network/varnish/rc.varnishd')
-rw-r--r--network/varnish/rc.varnishd10
1 files changed, 6 insertions, 4 deletions
diff --git a/network/varnish/rc.varnishd b/network/varnish/rc.varnishd
index b6354687f7..b8e0d16c5a 100644
--- a/network/varnish/rc.varnishd
+++ b/network/varnish/rc.varnishd
@@ -33,11 +33,13 @@ VARNISH_OPTS="-f $CONF \
-T $ADMIN_IP:${ADMIN_PORT} \
-a $HTTP_IP:${HTTP_PORT} \
-t $DEFAULT_TTL \
- -w${MIN_THREADS},${MAX_THREADS},${THREAD_TIMEOUT} \
-P $PID"
-VARNISH_PARAMS="-p http_headers=$HTTP_HEADERS \
- -p connect_timeout=$CONNECT_TIMEOUT"
+VARNISH_PARAMS="-p http_max_hdr=$HTTP_HEADERS \
+ -p thread_pool_min=${MIN_THREADS} \
+ -p thread_pool_max=${MAX_THREADS} \
+ -p thread_pool_timeout=${THREAD_TIMEOUT} \
+ -p connect_timeout=$CONNECT_TIMEOUT"
varnish_start() {
if [ -e $PID ];then
@@ -51,7 +53,7 @@ varnish_start() {
fi
ulimit -n $FILE_DESCRIPTORS
echo "starting varnish..."
- $BIN $VARNISH_OPTS $VARNISH_PARAMS
+ $BIN $VARNISH_OPTS $VARNISH_PARAMS
}
varnish_stop() {
echo "stopping varnish..."