commit | 8b15ba19c3694e0d3692e292b9504ea797366efb | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Feb 02 17:48:18 2012 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Feb 02 17:53:37 2012 +0100 |
tree | d80e97da3d25597f3e424f552ebd29e7e550ad43 | |
parent | 6f9b003c2b6f885c7bda8a4cdc88404b05e19b61 [diff] |
MEDIUM: improve config check return codes When checking a configuration file using "-c -f xxx", sometimes it is reported that a config is valid while it will later fail (eg: no enabled listener). Instead, let's improve the return values : - return 0 if config is 100% OK - return 1 if config has errors - return 2 if config is OK but no listener nor peer is enabled