mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 08:05:21 +00:00
foreground mode with logging to stderr is now -g, not -ff
This commit is contained in:
4
README
4
README
@@ -204,6 +204,10 @@ Bug Reports and Mailing Lists
|
|||||||
|
|
||||||
-f Run in the foreground.
|
-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>
|
-n <number_of_cpus>
|
||||||
|
|
||||||
-t <directory> Chroot to <directory> before running.
|
-t <directory> Chroot to <directory> before running.
|
||||||
|
@@ -174,7 +174,7 @@ parse_command_line(int argc, char *argv[]) {
|
|||||||
|
|
||||||
isc_commandline_errprint = ISC_FALSE;
|
isc_commandline_errprint = ISC_FALSE;
|
||||||
while ((ch = isc_commandline_parse(argc, argv,
|
while ((ch = isc_commandline_parse(argc, argv,
|
||||||
"c:d:fn:N:p:st:u:x:")) !=
|
"c:d:fgn:N:p:st:u:x:")) !=
|
||||||
-1) {
|
-1) {
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 'c':
|
case 'c':
|
||||||
@@ -188,6 +188,10 @@ parse_command_line(int argc, char *argv[]) {
|
|||||||
ns_g_logstderr = ISC_TRUE;
|
ns_g_logstderr = ISC_TRUE;
|
||||||
ns_g_foreground = ISC_TRUE;
|
ns_g_foreground = ISC_TRUE;
|
||||||
break;
|
break;
|
||||||
|
case 'g':
|
||||||
|
ns_g_foreground = ISC_TRUE;
|
||||||
|
ns_g_logstderr = ISC_TRUE;
|
||||||
|
break;
|
||||||
case 'N': /* Deprecated. */
|
case 'N': /* Deprecated. */
|
||||||
case 'n':
|
case 'n':
|
||||||
ns_g_cpus = atoi(isc_commandline_argument);
|
ns_g_cpus = atoi(isc_commandline_argument);
|
||||||
|
@@ -933,7 +933,7 @@ load_configuration(const char *filename, ns_server_t *server,
|
|||||||
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
|
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
|
||||||
NS_LOGMODULE_SERVER, ISC_LOG_INFO,
|
NS_LOGMODULE_SERVER, ISC_LOG_INFO,
|
||||||
"ignoring named.conf logging statement "
|
"ignoring named.conf logging statement "
|
||||||
"due to -ff option");
|
"due to -g option");
|
||||||
} else {
|
} else {
|
||||||
dns_c_logginglist_t *clog = NULL;
|
dns_c_logginglist_t *clog = NULL;
|
||||||
isc_logconfig_t *logc = NULL;
|
isc_logconfig_t *logc = NULL;
|
||||||
|
Reference in New Issue
Block a user