aboutsummaryrefslogtreecommitdiffstats
path: root/www/varnish
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2010-05-06 06:29:57 +0800
committerdes <des@FreeBSD.org>2010-05-06 06:29:57 +0800
commitfda43d5ce71fc78c5231e8ba1ac4e8406132b1ae (patch)
treec750336a75a3a10adec3613a9cfce401a3b25fec /www/varnish
parent8222fe6ce4e47d2911cf8b38a616543eed5b217b (diff)
downloadfreebsd-ports-gnome-fda43d5ce71fc78c5231e8ba1ac4e8406132b1ae.tar.gz
freebsd-ports-gnome-fda43d5ce71fc78c5231e8ba1ac4e8406132b1ae.tar.zst
freebsd-ports-gnome-fda43d5ce71fc78c5231e8ba1ac4e8406132b1ae.zip
Add an rcvar for the hash algorithm
PR: ports/146319
Diffstat (limited to 'www/varnish')
-rw-r--r--www/varnish/files/varnishd.in12
1 files changed, 8 insertions, 4 deletions
diff --git a/www/varnish/files/varnishd.in b/www/varnish/files/varnishd.in
index a5936978a80e..93c070424252 100644
--- a/www/varnish/files/varnishd.in
+++ b/www/varnish/files/varnishd.in
@@ -31,6 +31,9 @@
# varnishd_config - name of the varnishd config file.
# default: unset.
#
+# varnishd_hash - hash algorithm
+# default: "classic,16383"
+#
# varnishd_storage - storage method and parameters.
# default: "file,/tmp,50%"
#
@@ -41,8 +44,8 @@
# default: "www"
#
# varnishd_flags - complete command line arguments.
-# default if varnishd_config is unset: "-P ${varnishd_pidfile} -a ${varnishd_listen} -T ${varnishd_admin} -b ${varnishd_backend} -s ${varnishd_storage} -u ${varnishd_user} -g ${varnishd_group}"
-# default if varnishd_config is set: "-P ${varnishd_pidfile} -a ${varnishd_listen} -T ${varnishd_admin} -f ${varnishd_config} -s ${varnishd_storage} -u ${varnishd_user} -g ${varnishd_group}"
+# default if varnishd_config is unset: "-P ${varnishd_pidfile} -a ${varnishd_listen} -T ${varnishd_admin} -b ${varnishd_backend} -s ${varnishd_storage} -h ${varnishd_hash} -u ${varnishd_user} -g ${varnishd_group}"
+# default if varnishd_config is set: "-P ${varnishd_pidfile} -a ${varnishd_listen} -T ${varnishd_admin} -f ${varnishd_config} -s ${varnishd_storage} -h ${varnishd_hash} -u ${varnishd_user} -g ${varnishd_group}"
#
# See varnishd(1) for a detailed overview of command-line options.
#
@@ -63,12 +66,13 @@ load_rc_config ${name}
: ${varnishd_backend:="localhost:8080"}
: ${varnishd_config:=""}
: ${varnishd_storage:="file,/tmp,50%"}
+: ${varnishd_hash:="classic,16383"}
: ${varnishd_user:="www"}
: ${varnishd_group:="www"}
if [ -n "${varnishd_config}" ] ; then
- : ${varnishd_flags:="-P ${varnishd_pidfile} -a ${varnishd_listen} -T ${varnishd_admin} -f ${varnishd_config} -s ${varnishd_storage} -u ${varnishd_user} -g ${varnishd_group}"}
+ : ${varnishd_flags:="-P ${varnishd_pidfile} -a ${varnishd_listen} -T ${varnishd_admin} -f ${varnishd_config} -s ${varnishd_storage} -h ${varnishd_hash} -u ${varnishd_user} -g ${varnishd_group}"}
else
- : ${varnishd_flags:="-P ${varnishd_pidfile} -a ${varnishd_listen} -T ${varnishd_admin} -b ${varnishd_backend} -s ${varnishd_storage} -u ${varnishd_user} -g ${varnishd_group}"}
+ : ${varnishd_flags:="-P ${varnishd_pidfile} -a ${varnishd_listen} -T ${varnishd_admin} -b ${varnishd_backend} -s ${varnishd_storage} -h ${varnishd_hash} -u ${varnishd_user} -g ${varnishd_group}"}
fi
# If we leave these set, rc.subr will su to them before starting