OS Manuals

/usr/bin/haproxy

A TCP/HTTP reverse proxy for high availability environments

From haproxy-3.4 3.4.7-r0 (os), captured 2026-11-05 by running haproxy --help (exit 1). permalink

Also provided by 18 other package versions
HAProxy version 3.4.7 2026/10/14 - https://haproxy.org/
Status: long-term supported branch - will stop receiving fixes around Q2 2031.
Known bugs: http://www.haproxy.org/bugs/bugs-3.4.7.html
Running on: Linux 6.18.60-r0-gcp-6.18 #Chainguard SMP PREEMPT_DYNAMIC Fri Oct 30 16:29:35 UTC 2026 x86_64
Usage : haproxy [-f <cfgfile|cfgdir>]* [ -vdVD ] [ -n <maxconn> ] [ -N <maxpconn> ]
        [ -p <pidfile> ] [ -m <max megs> ] [ -C <dir> ] [-- <cfgfile>*]
        -v displays version ; -vv shows known build options.
        -vq/-vqs/-vqb only displays version, short version, branch.
        -d enters debug mode ; -db only disables background mode.
        -dM[<byte>,help,...] debug memory (default: poison with <byte>/0x50)
        -dt activate traces on stderr; see '-dt help'
        -V enters verbose mode (disables quiet mode)
        -D goes daemon ; -C changes to <dir> before loading files.
        -W master-worker mode.
        -Ws master-worker mode with systemd notify support.
        -q quiet mode : don't display messages
        -c check mode : only check config files and exit
        -cc check condition : evaluate a condition and exit
        -4 force resolvers to consider IPv4 responses only
        -n sets the maximum total # of connections (uses ulimit -n)
        -m limits the usable amount of memory (in MB)
        -N sets the default, per-proxy maximum # of connections (0)
        -L set local peer name (default to hostname)
        -p writes pids of all children to this file
        -dC[[key],line] display the configuration file, if there is a key, the file will be anonymised
        -de disables epoll() usage even when available
        -dp disables poll() usage even when available
        -dS disables splice usage (broken on old kernels)
        -dG disables getaddrinfo() usage
        -dR disables SO_REUSEPORT usage
        -dL dumps loaded object files after config checks
        -dA[file] collects libs into a tar file at <file>
        -dc dumps the list of selected and evicted CPUs
        -dK{class[,...]} dump registered keywords (use 'help' for list)
        -dr ignores server address resolution failures
        -dV disables SSL verify on servers side
        -dW fails if any warning is emitted
        -dD diagnostic mode : warn about suspicious configuration statements
        -dF disable fast-forward
        -dI enable insecure fork
        -dZ disable zero-copy forwarding
        -dT disable kTLS
        -sf/-st [pid ]* finishes/terminates old pids.
        -x <unix_socket> get listening sockets from a unix socket
        -S <bind>[,<bind options>...] new master CLI
Options (26)
OptionDescriptionSource
-f configurationSpecify configuration file or directory path.man
-L nameSet the local instance's peer name.man
-n maxconnSet the high limit for the total number of simultaneous connections.man
-N maxconnSet the high limit for the per-listener number of simultaneous connections.man
-C dirChange directory to <dir> before loading any files.man
-vDisplay HAProxy's version.man
-vvDisplay HAProxy's version and all build options.man
-dStart in foreground with debugging mode enabled.man
-DStart in daemon mode.man
-WStart in master-worker mode.man
-WsStart in master-worker mode with systemd notify support.man
-qDisable messages on output.man
-VDisplays messages on output even when -q or 'quiet' are specified.man
-cOnly checks config file and exits with code 0 if no error was found, or exits with code 1 if a syntax error was found.man
-p pidfileAsk the process to write down each of its children's pids to this file in daemon mode or ask the process to write down its master's pid to this file in master-worker mode.man
-dkDisable use of kqueue(2).man
-dvDisable use of event ports.man
-dsDisable use of speculative epoll(7).man
-deDisable use of epoll(7).man
-dpDisables use of poll(2).man
-dSDisables use of splice(2), which is broken on older kernels.man
-dbDisables background mode (stays in foreground, useful for debugging).man
-m megsEnforce a memory usage limit to a maximum of <megs> megabytes.man
-sf pidlistSend FINISH signal to the pids in pidlist after startup.man
-st pidlistSend TERMINATE signal to the pids in pidlist after startup.man
-x unix_socketAttempt to connect to the unix socket, and retrieve all the listening sockets from the old process.man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.