diff options
author | root <root@rshg054.dnsready.net> | 2012-01-01 23:14:56 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-01 23:14:56 +0000 |
commit | 29f5aa692a3fa3ff3e743a47d1c57f1cc0341809 (patch) | |
tree | 862d365a74545cb3e7616d14e3b660aae977e6f8 /extra/varnish/rc.varnish | |
parent | 8654516201466a2dd3f3f05a6c0095e69c01715c (diff) |
Sun Jan 1 23:14:56 UTC 2012
Diffstat (limited to 'extra/varnish/rc.varnish')
-rw-r--r-- | extra/varnish/rc.varnish | 10 |
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 |