]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] startup: don't imply -q with -D
authorWilly Tarreau <w@1wt.eu>
Mon, 18 May 2009 14:29:51 +0000 (16:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Jun 2009 10:09:15 +0000 (12:09 +0200)
It is recommended to have -D in init scripts, but -D also implies
quiet mode, which hides warning messages, and both options are now
completely unrelated. Remove the implication to get warnings with
-D.

src/haproxy.c

index 1c4501a1d480a48c1a44be599b07c53a33d002a2..e656859e14000b573afdcdfa246f0b3ddc84b19d 100644 (file)
@@ -203,7 +203,7 @@ void usage(char *name)
                "        -v displays version ; -vv shows known build options.\n"
                "        -d enters debug mode ; -db only disables background mode.\n"
                "        -V enters verbose mode (disables quiet mode)\n"
-               "        -D goes daemon ; implies -q\n"
+               "        -D goes daemon\n"
                "        -q quiet mode : don't display messages\n"
                "        -c check mode : only check config file and exit\n"
                "        -n sets the maximum total # of connections (%d)\n"
@@ -475,7 +475,7 @@ void init(int argc, char **argv)
                        else if (*flag == 'c')
                                arg_mode |= MODE_CHECK;
                        else if (*flag == 'D')
-                               arg_mode |= MODE_DAEMON | MODE_QUIET;
+                               arg_mode |= MODE_DAEMON;
                        else if (*flag == 'q')
                                arg_mode |= MODE_QUIET;
                        else if (*flag == 's' && (flag[1] == 'f' || flag[1] == 't')) {