]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cli: add a new "wait" command to wait for a certain delay
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Feb 2024 20:45:22 +0000 (21:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Feb 2024 20:54:54 +0000 (21:54 +0100)
commit1d2255a78a728a68e711a0c7ecffb1b57dc673fe
tree94e63b3d53eee7db39afc4a3dd60690c543ad277
parent02b31fa0030549938bd3cda0125a8d59ed3a8254
MINOR: cli: add a new "wait" command to wait for a certain delay

This allows to insert delays between commands, i.e. to collect a same
set of metrics at a fixed interval. E.g:

  $ socat -t20 /path/to/socket <<< "show activity; wait 10s; show activity"

The goal will be to extend the feature to optionally support waiting on
certain conditions. For this reason the struct definitions and enums were
placed into cli-t.h.
doc/management.txt
include/haproxy/cli-t.h
src/cli.c