Examples (8)
Check configuration file for validity
haproxy -c -f path/to/haproxy.cfgStart HAProxy with a configuration file
haproxy -f path/to/haproxy.cfgStart in daemon mode
haproxy -D -f path/to/haproxy.cfgStart in master-worker mode
haproxy -W -f path/to/haproxy.cfgStart with debugging mode enabled (foreground, verbose output)
haproxy -d -f path/to/haproxy.cfgReload configuration with graceful shutdown of old process
haproxy -f path/to/haproxy.cfg -sf pidSet maximum number of simultaneous connections
haproxy -f path/to/haproxy.cfg -n maxconnReload with zero downtime by reusing sockets from old process
haproxy -f path/to/haproxy.cfg -x path/to/haproxy.sock -sf pidmade by @shridhargupta | data from tldr-pages