summaryrefslogtreecommitdiff
path: root/extra/varnish/rc.varnish
diff options
context:
space:
mode:
Diffstat (limited to 'extra/varnish/rc.varnish')
-rw-r--r--extra/varnish/rc.varnish10
1 files changed, 5 insertions, 5 deletions
diff --git a/extra/varnish/rc.varnish b/extra/varnish/rc.varnish
index 4e4fde60d..2841665e5 100644
--- a/extra/varnish/rc.varnish
+++ b/extra/varnish/rc.varnish
@@ -12,7 +12,7 @@ reload_vcl() {
return 1
fi
- activecfg=$(varnishadm -T localhost:6082 "vcl.list" | awk '/active/{ print $3 }')
+ activecfg=$(varnishadm 'vcl.list' | awk '/active/ { print $3 }')
if [[ -z $activecfg ]]; then
printf '==> ERROR: No active VCL found!\n'
return 1
@@ -20,9 +20,9 @@ reload_vcl() {
printf -v newcfg 'vcl-%(%s)T' -1
- varnishadm -T localhost:6082 "vcl.load $newcfg $VARNISH_CFG" &&
- varnishadm -T localhost:6082 "vcl.use $newcfg" &&
- varnishadm -T localhost:6082 "vcl.discard $activecfg" || return 1
+ varnishadm "vcl.load $newcfg $VARNISH_CFG" &&
+ varnishadm "vcl.use $newcfg" &&
+ varnishadm "vcl.discard $activecfg" || return 1
}
pidfile=/run/varnish.pid
@@ -35,7 +35,7 @@ if [[ -r $pidfile ]]; then
fi
fi
-case "$1" in
+case $1 in
start)
stat_busy "Starting Varnish Reverse Proxy"
if /usr/sbin/varnishd $VARNISHD_OPTS -P "$pidfile"; then