[Varnish] #1666: make init script check config before restarting

Varnish varnish-bugs at varnish-cache.org
Tue Sep 1 12:40:27 CEST 2015


#1666: make init script check config before restarting
--------------------------+-----------------------
 Reporter:  KlavsKlavsen  |       Owner:  lkarsten
     Type:  defect        |      Status:  new
 Priority:  normal        |   Milestone:
Component:  build         |     Version:  unknown
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------

Comment (by gquintard):

 I looked at how to do it in systemd, and stumbled upon this thread :
 http://lists.freedesktop.org/archives/systemd-devel/2014-July/021633.html

 TL;DR : there no !ExecRestartPre/!ExecRestartCheck that would allow us to
 do it. Restart is just a stop and a start with no idea of context.

 Maybe we can tweak varnish_vcl_reload to have a dryrun/check/fake option
 that would just validate the vcl? However, that wouldn't catch errors in
 the command line, but I'm not sure anything can.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1666#comment:3>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list