From 2c07b397aadd3d6780bcbd382f83d50a47c11088 Mon Sep 17 00:00:00 2001 From: gcolpart Date: Thu, 10 Nov 2016 10:31:18 +0100 Subject: [PATCH] ajout du check de la conf avant reload --- HowtoVarnish.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HowtoVarnish.md b/HowtoVarnish.md index 99ec18d8..0e7d9110 100644 --- a/HowtoVarnish.md +++ b/HowtoVarnish.md @@ -43,7 +43,8 @@ ExecReload=/etc/varnish/reload-vcl.sh ~~~{.bash} #!/bin/sh UUID=`cat /proc/sys/kernel/random/uuid` -/usr/bin/varnishadm -T localhost:6082 -S /etc/varnish/secret "vcl.load vcl_$UUID /etc/varnish/default.vcl" \ +/usr/sbin/varnishd -C -f /etc/varnish/default.vcl >/dev/null \ + &&/usr/bin/varnishadm -T localhost:6082 -S /etc/varnish/secret "vcl.load vcl_$UUID /etc/varnish/default.vcl" \ && /usr/bin/varnishadm -T localhost:6082 -S /etc/varnish/secret "vcl.use vcl_$UUID" ~~~