haproxy -f /etc/haproxy/haproxy.cfg -db

Category: Web Servers & Proxies

haproxy -f /etc/haproxy/haproxy.cfg -db

Run HAProxy in the foreground for debugging

-db disables background mode so the process stays in the foreground and logs directly to your terminal, which is invaluable when testing a new config. It also disables multi-process mode. In production, systemd runs HAProxy as a daemon.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.