commit | fc0cceb08a5e11a5e767e3a1d4d44901c454a850 | [log] [tgz] |
---|---|---|
author | Maximilian Mader <max@bastelstu.be> | Sun Jun 06 00:50:22 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jun 08 11:17:19 2021 +0200 |
tree | 08eb5cfae0a9f50137bf38821d4596b021af09f6 | |
parent | 29c6cd7d8a37222f9f8154279c2957e2e7730a63 [diff] |
MINOR: haproxy: Add `-cc` argument This patch adds the `-cc` (check condition) argument to evaluate conditions on startup and return the result as the exit code. As an example this can be used to easily check HAProxy's version in scripts: haproxy -cc 'version_atleast(2.4)' This resolves GitHub issue #1246. Co-authored-by: Tim Duesterhus <tim@bastelstu.be>