]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: init: report the haproxy version and executable path once on errors
authorWilly Tarreau <w@1wt.eu>
Thu, 16 Apr 2020 08:52:41 +0000 (10:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 16 Apr 2020 08:52:41 +0000 (10:52 +0200)
commitbb86986253dac6027c793b7f9f5822bb458f4787
treedc0af92dbb463bb53f1709306d164f4dcf456b25
parentd425950c68a647f9bdabd0ada171fa95b974b384
MINOR: init: report the haproxy version and executable path once on errors

If haproxy fails to start and emits an alert, then it can be useful
to have it also emit the version and the path used to load it. Some
users may be mistakenly launching the wrong binary due to a misconfigured
PATH variable and this will save them some troubleshooting time when it
reports that some keywords are not understood.

What we do here is that we *try* to extract the binary name from the
AUX vector on glibc, and we report this as a NOTICE tag before the
very first alert is emitted.
include/common/standard.h
include/types/global.h
src/log.c
src/standard.c