diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2008-11-18 14:22:01 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2008-11-18 14:22:01 +0000 |
commit | 9aa33de084dadf6cf7d4bffc23f35067be252525 (patch) | |
tree | 936ae1ed58db935ac366866acd399f7f9b9bae5d /www/varnish | |
parent | 53ed6d04372f85504b800dbe9154d6f03e350e73 (diff) | |
download | ports-9aa33de084dadf6cf7d4bffc23f35067be252525.tar.gz ports-9aa33de084dadf6cf7d4bffc23f35067be252525.zip |
Notes
Diffstat (limited to 'www/varnish')
-rw-r--r-- | www/varnish/files/varnishd.in | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/www/varnish/files/varnishd.in b/www/varnish/files/varnishd.in index fcbf3bd3f012..90195b126d5e 100644 --- a/www/varnish/files/varnishd.in +++ b/www/varnish/files/varnishd.in @@ -18,7 +18,9 @@ #varnishd_config="%%PREFIX%%/etc/varnish/default.vcl" #varnishd_telnet="localhost:6082" #varnishd_storage="file,/tmp,50%" -#varnishd_flags="-P ${pidfile} -a ${varnishd_listen} -f ${varnishd_config} -T ${varnishd_telnet} -s ${varnishd_storage}" +#varnishd_user="www" +#varnishd_group="www" +#varnishd_flags="-P ${pidfile} -a ${varnishd_listen} -f ${varnishd_config} -T ${varnishd_telnet} -s ${varnishd_storage} -u ${varnishd_user} -g ${varnishd_group}" # # See varnishd(1) for a detailed overview of command-line options. # @@ -38,6 +40,13 @@ load_rc_config ${name} : ${varnishd_config="%%PREFIX%%/etc/varnish/default.vcl"} : ${varnishd_telnet="localhost:6082"} : ${varnishd_storage="file,/tmp,50%"} -: ${varnishd_flags="-P ${pidfile} -a ${varnishd_listen} -f ${varnishd_config} -T ${varnishd_telnet} -s ${varnishd_storage}"} +: ${varnishd_user="www"} +: ${varnishd_group="www"} +: ${varnishd_flags="-P ${pidfile} -a ${varnishd_listen} -f ${varnishd_config} -T ${varnishd_telnet} -s ${varnishd_storage} -u ${varnishd_user} -g ${varnishd_group}"} + +# If we leave these set, rc.subr will su to them before starting +# varnishd, which is not what we want. +unset varnishd_user +unset varnishd_group run_rc_command "$1" |