[Varnish] #1756: /etc/init.d/varnish reload always returns 0 on debian/ubuntu

Varnish varnish-bugs at varnish-cache.org
Tue Jun 30 19:38:07 CEST 2015

#1756: /etc/init.d/varnish reload always returns 0 on debian/ubuntu
 Reporter:  fleish                          |       Type:  defect
   Status:  new                             |   Priority:  normal
Milestone:                                  |  Component:  build
  Version:  unknown                         |   Severity:  normal
 Keywords:  init init.d reload exit return  |
 This is similar to the issue reported in ticket #981, but continues on
 despite the fix. Despite the reload command "/usr/share/varnish/reload-vcl
 -q" returning 1, the closing "exit 0" in the script makes it so checking
 the exit status of "/etc/init.d/varnish reload" is always 0 even when the
 reload fails due to a syntax error for example. As a workaround, I've
 removed the closing "exit 0" out of the script, but there might be a
 better solution. I am running varnishd (varnish-3.0.7 revision f544cd8)

Ticket URL: <https://www.varnish-cache.org/trac/ticket/1756>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list