]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: httpterm: add support httpterm run mode
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:35:50 +0000 (20:35 +0100)
commit516ef4bfe20421212e2f80e88aae75c27273178b
treef3e10d6729976f53d2cb2a89b5b0a4ce1ed0a80a
parent7cdd8747732a4f8c89cde64b504f443444a33abe
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