Is there any way to validate the HAProxy haproxy.cfg
file before restarting the HAProxy service? For example: There might be a small spelling/syntax error in a larger haproxy.cfg
file. I searched through several forums, but was unable to find anything in relation to validating the haproxy.cfg
files for syntax errors.
As of now, I use a trial and error basis on a developer machine before I upload the changes to a Production Server.
service haproxy reload
? If you are, it should already work like this... it won't restart unless the config is valid, and the old process is unaffected. – Iridisservice haproxy restart
. Perhaps I should try theservice haproxy reload
instead. I wanted to know if there was some way of passing/validating thehaproxy.cfg
before restarting it. – Williawilliam