haproxy - CLI - Cheatsheet
Validate config
haproxy -c -f $config_file
# e.g. haproxy -c -f haproxy.cfg
Get systemd logs
sudo journalctl -u haproxy --since today --no-pager
Run in foreground for testing and debugging purposes
sudo haproxy -W -db -f $haproxy_cfg
# By default logs output to stdout
References
-
Proof of Concept
-
Tutorial
-
Logging
-
Config
-
CLI - haproxy