You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
293 B
14 lines
293 B
11 years ago
|
#!/bin/sh
|
||
|
|
||
|
# from http://unix.stackexchange.com/questions/35863/varnish-configtest
|
||
|
|
||
|
tmpfile=$(mktemp)
|
||
|
trap 'rm -f $tmpfile' 0
|
||
|
varnishd -C -f /etc/varnish/default.vcl > $tmpfile
|
||
|
echo
|
||
|
|
||
|
if [ ! -s $tmpfile ]; then
|
||
|
echo "ERROR: There are errors in the varnish configuration." >&2
|
||
|
exit 1
|
||
|
fi
|