]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: httpterm: add support httpterm run mode 20260108-httpterm flx04/20260108-httpterm
authorFrederic Lecaille <flecaille@haproxy.com>
Mon, 26 Jan 2026 15:37:39 +0000 (16:37 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 29 Jan 2026 19:41:17 +0000 (20:41 +0100)
commita854b555da0d978aecb58a2482847c0af1823a5b
treebf10173c4815133671a41f00816c9f2e2c41730d
parent7ec872467f4354737cf8096826280f4419b925ad
MINOR: httpterm: add support httpterm run mode

Rely on the binary name to decide the mode which will be used by
the built process. If its name begin with "httpterm" substring,
the httpterm mode will be run. This is done by init_early() function
which set httpterm_mode to 1 if this is the case.

When in httpterm mode, the process call init_args() as for haproxy
but skip the haproxy command line arguments parsing. This is done
by init_httpterm_cfg() which parse the httpterm command line arguments.
This function also initalize the struct cfgfile httpterm_cfg variable.
Then parse_cfg() is called to by main() to configure the frontend
used by httpterm, depending on the arguments of its command line.

backup_env() is skipped in this httpterm mode. This is also the case
for the master worker which is not initialized.
include/haproxy/global.h
src/haproxy.c