MINOR: cli: "show version" displays the current process version
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 14 Dec 2021 14:22:29 +0000 (15:22 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 14 Dec 2021 14:49:06 +0000 (15:49 +0100)
commited4f13530956b94b8fc4cf22b9655c8189fa34d8
tree6a1b4c2a4a7fb5ec4599c3988fb8170ec4b34fdd
parent7c547fd23c98f19fa35700d04d8276157ca8abff
MINOR: cli: "show version" displays the current process version

This patch implements a simple "show version" command which returns
the version of the current process.

It's available from the master and the worker processes, so it is easy
to check if the master and the workers have the same version.

This is a minor patch that really improve compatibility checks
for scripts.

Could be backported in haproxy version as far as 2.0.

(cherry picked from commit 740629e2966641871b183d1c728fa7aeda45a1cc)
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
(cherry picked from commit 02c2cc8cbec61287af9af54b7b712fdb5f9747ca)
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
(cherry picked from commit 7ceae1189a8dce334c3078be0f9dffdb99f90c10)
[wla: context changes in cli.c]
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
doc/management.txt
src/cli.c