From f4f93c56c17165e7098dc98cecf49e656e57afff Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Mon, 11 Aug 2025 16:19:17 +0200 Subject: [PATCH] DOC: management: clarify usage of -V with -c In ticket #3065 an user complained that no success message is printed anymore when using -c. The message does not appear by default since version 2.9. This patch clarify the documentation. Must be backported as far as 2.8. --- doc/management.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/management.txt b/doc/management.txt index 2c2756283..2ba12a5b8 100644 --- a/doc/management.txt +++ b/doc/management.txt @@ -200,6 +200,12 @@ list of options is : -c : only performs a check of the configuration files and exits before trying to bind. The exit status is zero if everything is OK, or non-zero if an error is encountered. Presence of warnings will be reported if any. + By default this option does not report a success message. Combined with + "-V" this will print the message "Configuration file is valid" upon + success. + + Scripts must use the exit status to dertermine the success of the + command. -cc : evaluates a condition as used within a conditional block of the configuration. The exit status is zero if the condition is true, 1 if the