Commit a8a47cb8 authored by Denis Brækhus's avatar Denis Brækhus

Remove syntax check on restart/reload

Due to https://github.com/varnishcache/varnish-cache/issues/2316
we cannot reliably config-test the VCL in the init-script.
If users want to configtest the VCL in advance of a restart, this
can be done with loading the new VCL into the running varnish, or
running ``varnishd -C`` with a different option-set that will not
conflict with the running instance(s).
parent 2e1dbe61
......@@ -137,12 +137,6 @@ case "$1" in
status_varnishd
;;
restart|force-reload)
if status_of_proc -p "${PIDFILE}" "${DAEMON}" "${SERVICE}" 1>/dev/null; then
if ! configtest; then
log_failure_msg "Syntax check failed, not restarting"
exit 1
fi
fi
$0 stop
$0 start
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment