aboutsummaryrefslogtreecommitdiffstats
path: root/main/varnish/varnishd.confd
diff options
context:
space:
mode:
authorV.Krishn <vkrishn4@gmail.com>2013-05-08 13:21:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-05-09 06:45:33 +0000
commit7fb51995c49d292b40a4cf2429cafec98ec72f55 (patch)
tree7957e695f6c0b4f0dbf7e51144518702ac21e5ba /main/varnish/varnishd.confd
parent40f70f0e3529770eea2387974808398394548161 (diff)
downloadaports-7fb51995c49d292b40a4cf2429cafec98ec72f55.tar.bz2
aports-7fb51995c49d292b40a4cf2429cafec98ec72f55.tar.xz
Improved confd and add checkpath, build fixes
Diffstat (limited to 'main/varnish/varnishd.confd')
-rw-r--r--main/varnish/varnishd.confd28
1 files changed, 26 insertions, 2 deletions
diff --git a/main/varnish/varnishd.confd b/main/varnish/varnishd.confd
index 1b46706c23..1471f82078 100644
--- a/main/varnish/varnishd.confd
+++ b/main/varnish/varnishd.confd
@@ -1,12 +1,36 @@
# /etc/conf.d/varnishd
+
+# Varnish configuration file
+VARNISH_CONF="/etc/varnish/default.vcl"
+
+VARNISH_SECRET_FILE="/etc/varnish/secret"
+
+# Varnish address
+VARNISH_LISTEN_ADDRESS=
+VARNISH_PORT=8080
+
+# Varnish work files
+VARNISH_WORKING_DIR="/var/cache/varnish"
+VARNISH_STORAGE_FILE="/var/cache/varnish/varnish_storage.bin"
+VARNISH_STORAGE_SIZE=50M
+VARNISH_STORAGE="file,${VARNISH_STORAGE_FILE},${VARNISH_STORAGE_SIZE}"
+
+# PID files
+VARNISHD_PID_FILE=/var/run/varnish/varnishd.pid
+VARNISHNCSA_PID_FILE=/var/run/varnish/varnishncsa.pid
+
+# Varnish admin
ADMINHOSTPORT="127.0.0.1:65080"
-CFG_FILE="/etc/varnish/default.vcl"
# options passed to varnish on startup
# please see the varnishd man page for more options
-VARNISHD_OPTS="-a 127.0.0.1:8080 -T $ADMINHOSTPORT -f $CFG_FILE"
+VARNISHD_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_PORT} -f ${VARNISH_CONF} -s ${VARNISH_STORAGE} -n $VARNISH_WORKING_DIR -T $ADMINHOSTPORT"
+
+# add user
+VARNISHD_OPTS="-u varnish $VARNISHD_OPTS"
# arguments passed to varnishncsa
# please see the varnishncsa man page for more options
VARNISHNCSA_ARGS="-c -a -w /var/log/varnish/access.log"
+