]> 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>
Wed, 28 Jan 2026 15:09:40 +0000 (16:09 +0100)
commitf81d848447975ad7ffd8ed69e456b3b62645d70e
tree0ffa2cf6962ee7b987368252547a411dd86563e0
parent3ac2007da4810a71e2c6ef3f22620fff83f5a991
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