BUG/MINOR: trace: automatically start in waiting mode with "start <evt>"

The doc clearly says that "start <evt>" should leave the trace in pause
mode until the indicated event appears. However it's not what's happening,
the state is not changed until one command uses "now", so it's typically
needed to configure the events with "start <evt>" then enable the waiting
mode using "pause now". This is counter-intuitive and does not match the
doc, so let's fix it so that "start <evt>" switches from stopped to waiting
as long as at least one event is enabled.

This can be backported to all versions.

(cherry picked from commit 0406efe9ad129e91f8a6c93b780064b3c27ccaa0)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 830fcd308217f0753ea089837a176cda77c80113)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit ceeca03b0eca581b5cfcd2fef39816f0739d8048)
Signed-off-by: Willy Tarreau <w@1wt.eu>
1 file changed