#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
_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
-------------------------+-------------------
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
_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs