There are only a few command line options about haproxy:
-f <configuration file>
-n <high limit for the total number of simultaneous connections>
= ‘maxconn’ in ‘global’ section
-N <high limit for the per-listener number of simultaneous connections>
= ‘maxconn’ in ‘listen’ or ‘default’ sections
-d starts in foregreound with debugging mode enabled
-D starts in daemon mode
-q disable messages on output
-V displays messages on output even when -q or ‘quiet’ are specified.
-c only checks config file and exits with code 0 if no error was found, or
exits with code 1 if a syntax error was found.
-p <pidfile> asks the process to write down each of its children’s
pids to this file in daemon mode.
-sf specifies a list of pids to send a FINISH signal to after startup.
-st specifies a list of pids to send a TERMINATE signal to after startup.
-s shows statistics (only if compiled in)
-l shows even more statistics (implies ‘-s’)
-dk disables use of kqueue()
-ds disables use of speculative epoll()
-de disables use of epoll()
-dp disables use of poll()
-db disables background mode (stays in foreground, useful for debugging)
-m <megs> enforces a memory usage limit to a maximum of <megs> megabytes.
The maximal number of connections per proxy instance is used as the default
parameter for each instance for which the ‘maxconn’ paramter is not set in the
‘listen’ section.
The maximal number of total connections limits the number of connections used by
the whole process if the ‘maxconn’ parameter is not set in the ‘global’ section.
The debugging mode has the same effect as the ‘debug’ option in the ‘global’
section. When the proxy runs in this mode, it dumps every connections,
disconnections, timestamps, and HTTP headers to stdout. This should NEVER
be used in an init script since it will prevent the system from starting up.
For debugging, the ‘-db’ option is very useful as it temporarily disables
daemon mode and multi-process mode. The service can then be stopped by simply
pressing Ctrl-C, without having to edit the config nor run full debug.
Statistics are only available if compiled in with the ‘STATTIME’ option. It’s
only used during code optimization phases, and will soon disappear.
The ‘-st’ and ‘-sf’ options are used for hot reconfiguration.