aboutsummaryrefslogtreecommitdiff
path: root/www/varnish/files/varnishlog.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/varnish/files/varnishlog.in')
-rw-r--r--www/varnish/files/varnishlog.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/www/varnish/files/varnishlog.in b/www/varnish/files/varnishlog.in
index 90dc933c05c1..3c06c610f7bb 100644
--- a/www/varnish/files/varnishlog.in
+++ b/www/varnish/files/varnishlog.in
@@ -28,11 +28,11 @@ rcvar=`set_rcvar`
command="%%PREFIX%%/bin/varnishlog"
pidfile="/var/run/${name}.pid"
-# set defaults
-
-varnishlog_enable=${varnishlog_enable:-"NO"}
-varnishlog_file=${varnishlog_file:-"/var/log/varnish.log"}
-varnishlog_flags=${varnishlog_flags:-"-P ${pidfile} -D -a -w ${varnishlog_file}"}
+# read configuration and set defaults
+load_rc_config ${name}
+: ${varnishlog_enable="NO"}
+: ${varnishlog_file="/var/log/varnish.log"}
+: ${varnishlog_flags="-P ${pidfile} -D -a -w ${varnishlog_file}"}
load_rc_config ${name}