ajout du check de la conf avant reload
This commit is contained in:
parent
286759a365
commit
2c07b397aa
|
@ -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"
|
||||
~~~
|
||||
|
||||
|
|
Loading…
Reference in a new issue