aboutsummaryrefslogtreecommitdiffstats
path: root/main/varnish/varnishd.confd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-04-14 08:59:08 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-04-14 09:03:30 +0000
commite59b4743337fdb0dc950ce9d1f03a9c747472b63 (patch)
tree1fc1dc47564822632445b43494bc31f9d014c8cd /main/varnish/varnishd.confd
parent0126ba3d84d35779e1ff8a0b5eb0d1162b37796a (diff)
downloadaports-e59b4743337fdb0dc950ce9d1f03a9c747472b63.tar.bz2
aports-e59b4743337fdb0dc950ce9d1f03a9c747472b63.tar.xz
main/varnish: sync with openrc scripts from gentoo
Diffstat (limited to 'main/varnish/varnishd.confd')
-rw-r--r--main/varnish/varnishd.confd38
1 files changed, 12 insertions, 26 deletions
diff --git a/main/varnish/varnishd.confd b/main/varnish/varnishd.confd
index b51eda6be5..1a18b64854 100644
--- a/main/varnish/varnishd.confd
+++ b/main/varnish/varnishd.confd
@@ -1,32 +1,18 @@
# /etc/conf.d/varnishd
+VARNISHD="/usr/sbin/varnishd"
+VARNISHADM="/usr/bin/varnishadm"
-# Varnish configuration file
-# VARNISH_CONF="/etc/varnish/default.vcl"
+#CONFIGFILES="/etc/varnish/${SVCNAME}.vcl"
+CONFIGFILE="/etc/varnish/default.vcl"
-VARNISH_SECRET_FILE="/etc/varnish/secret"
+# Listen on 127.0.0.1:8080 and connect to backend 127.0.0.1:80
+#VARNISHD_OPTS="-a 127.0.0.1:8080 -a 127.0.0.1:8080"
-# Varnish address
-VARNISH_LISTEN_ADDRESS=
-VARNISH_PORT=8080
-
-# Varnish storage
-VARNISH_STORAGE_FILE="/var/cache/varnish/varnish_storage.bin"
-VARNISH_STORAGE_SIZE=50M
-VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
-# VARNISH_STORAGE="malloc,${VARNISH_STORAGE_SIZE}"
-
-# Varnish admin
-ADMINHOSTPORT="127.0.0.1:65080"
-
-# If maxminddb.vcl is included, this adds the proper library support
-# VARNISHD_PLUGIN_CFLAGS="-lmaxminddb"
-
-# options passed to varnish on startup
-# please see the varnishd man page for more options
-VARNISHD_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_PORT} -s ${VARNISH_STORAGE} -T $ADMINHOSTPORT"
-
-# arguments passed to varnishncsa
-# please see the varnishncsa man page for more options
-VARNISHNCSA_ARGS="-a -w /var/log/varnish/${SVCNAME}.log"
+# Alternatively, don't listen to a backend
+VARNISHD_OPTS="-a 127.0.0.1:8080"
+# You may need to increase the number of open files (-n)
+# and the maximum amount off locked memory (-l)
+# See bug #459142
+#rc_ulimit="-n 32786 -l 82000"