2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

foreground mode with logging to stderr is now -g, not -ff

This commit is contained in:
Andreas Gustafsson
2000-02-29 18:37:14 +00:00
parent 2f58a0486c
commit 32b61e553b
3 changed files with 10 additions and 2 deletions

4
README
View File

@@ -204,6 +204,10 @@ Bug Reports and Mailing Lists
-f Run in the foreground.
-g Run in the foreground and log
to stderr, ignoring any "logging"
statement in in the config file
-n <number_of_cpus>
-t <directory> Chroot to <directory> before running.

View File

@@ -174,7 +174,7 @@ parse_command_line(int argc, char *argv[]) {
isc_commandline_errprint = ISC_FALSE;
while ((ch = isc_commandline_parse(argc, argv,
"c:d:fn:N:p:st:u:x:")) !=
"c:d:fgn:N:p:st:u:x:")) !=
-1) {
switch (ch) {
case 'c':
@@ -188,6 +188,10 @@ parse_command_line(int argc, char *argv[]) {
ns_g_logstderr = ISC_TRUE;
ns_g_foreground = ISC_TRUE;
break;
case 'g':
ns_g_foreground = ISC_TRUE;
ns_g_logstderr = ISC_TRUE;
break;
case 'N': /* Deprecated. */
case 'n':
ns_g_cpus = atoi(isc_commandline_argument);

View File

@@ -933,7 +933,7 @@ load_configuration(const char *filename, ns_server_t *server,
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
NS_LOGMODULE_SERVER, ISC_LOG_INFO,
"ignoring named.conf logging statement "
"due to -ff option");
"due to -g option");
} else {
dns_c_logginglist_t *clog = NULL;
isc_logconfig_t *logc = NULL;