MINOR: version: report the version status in "haproxy -v"
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Nov 2019 17:07:30 +0000 (18:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Nov 2019 17:47:54 +0000 (18:47 +0100)
commit08dd202d7319af27521f62525a1ed77e7abe88ca
treeea592d8d182079eaf09f4b8857bfbc2d7b02bedc
parented44243de7f23f3079cf733c549eeb76e952c1b9
MINOR: version: report the version status in "haproxy -v"

As discussed on Discourse here:

    https://discourse.haproxy.org/t/haproxy-branch-support-lifetime/4466

it's not always easy for end users to know the lifecycle of the version
they are using. This patch introduces a "Status" line in the output of
"haproxy -vv" indicating whether it's a development, stable, long-term
supported version, possibly with an estimated end of life for the branch
when it can be anticipated (e.g. for stable versions). This field should
be adjusted when creating a major release to reflect the new status.

It may make sense to backport this to other branches to clarify the
situation.
include/common/version.h
src/haproxy.c