mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-18 11:40:50 +00:00
MEDIUM: startup: 'haproxy -c' is quiet when valid
MODE_CHECK does not output "Configuration file is valid" by default anymore. To display this message the -V option must be used with -c. However the warning and errors are still output by default if they exist. This allows to clean the output of the systemd unit file with is doing a -c.
This commit is contained in:
parent
cf07cb96be
commit
a06f6212c9
@ -2375,6 +2375,7 @@ static void init(int argc, char **argv)
|
|||||||
|
|
||||||
if (pr || px) {
|
if (pr || px) {
|
||||||
/* At least one peer or one listener has been found */
|
/* At least one peer or one listener has been found */
|
||||||
|
if (global.mode & MODE_VERBOSE)
|
||||||
qfprintf(stdout, "Configuration file is valid\n");
|
qfprintf(stdout, "Configuration file is valid\n");
|
||||||
deinit_and_exit(0);
|
deinit_and_exit(0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user