[4.1] 20d0f0b Fix configtest when vcl_dir is specified
Federico G. Schwindt
fgsch at lodoss.net
Fri Sep 4 15:54:52 CEST 2015
commit 20d0f0bb357e88fb95066f15e50e86fa3ea27862
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Mon Aug 3 14:07:33 2015 +0100
Fix configtest when vcl_dir is specified
Reported and diff submitted by Gauthier Delacroix on varnish-dev.
diff --git a/redhat/varnish.initrc b/redhat/varnish.initrc
index 117e334..67b530a 100755
--- a/redhat/varnish.initrc
+++ b/redhat/varnish.initrc
@@ -126,7 +126,7 @@ rh_status_q() {
configtest() {
if [ -f "$VARNISH_VCL_CONF" ]; then
- $exec -f "$VARNISH_VCL_CONF" -C -n /tmp > /dev/null && echo "Syntax ok"
+ $exec -f "$VARNISH_VCL_CONF" -C "$DAEMON_OPTS" -n /tmp > /dev/null && echo "Syntax ok"
else
echo "VARNISH_VCL_CONF is unset or does not point to a file"
fi
More information about the varnish-commit
mailing list