[Varnish] #1760: varnishstat -w dies if varnish is restarted.

Varnish varnish-bugs at varnish-cache.org
Mon Jul 6 13:59:37 CEST 2015


#1760: varnishstat -w dies if varnish is restarted.
-------------------------+-------------------
 Reporter:  lkarsten     |      Owner:
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:
Component:  varnishstat  |    Version:  trunk
 Severity:  normal       |   Keywords:
-------------------------+-------------------
 The -w (wait) functionality in varnishstat is there to write a continuous
 feed of varnishstat counters to stdout.

 If varnishd is restarted there is very little error handling in
 varnishstat, just an exit(1). It is usually in these conditions the
 numbers output by varnishstat is the most useful.

 Expected: varnishstat gracefully handled that varnish went away and came
 back.

 After discussing this with Martin for a bit, I think we should either:
 1) Fix varnishstat to be a proper daemon (write to a logfile by itself,
 handle SIGHUP, example init script to start/stop collection), or
 2) remove -w and say that anyone needing this can use a shell loop
 instead.

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



More information about the varnish-bugs mailing list