Reverse logic so when network logging, it by default does not log locally.
This commit is contained in:
@ -1176,7 +1176,7 @@ const char syslogd_usage[] =
|
|||||||
"\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n"
|
"\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n"
|
||||||
#ifdef BB_FEATURE_REMOTE_LOG
|
#ifdef BB_FEATURE_REMOTE_LOG
|
||||||
"\t-R HOST[:PORT]\t\tLog remotely to IP or hostname on PORT (default PORT=514/UDP)\n"
|
"\t-R HOST[:PORT]\t\tLog remotely to IP or hostname on PORT (default PORT=514/UDP)\n"
|
||||||
"\t-N\t\tDo not log anything locally -- network logging only.\n"
|
"\t-L\t\tLog locally as well as network logging (defaut is network only)\n"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
@ -1730,8 +1730,8 @@ Options:
|
|||||||
-n Run as a foreground process
|
-n Run as a foreground process
|
||||||
-K Do not start up the klogd process
|
-K Do not start up the klogd process
|
||||||
-O FILE Use an alternate log file (default=/var/log/messages)
|
-O FILE Use an alternate log file (default=/var/log/messages)
|
||||||
-R HOST[:PORT] Log messages to HOST on PORT (default=514) over UDP.
|
-R HOST[:PORT] Log remotely to IP or hostname on PORT (default PORT=514/UDP)
|
||||||
-N Do not log anything locally -- network logging only
|
-L Log locally as well as network logging (defaut is network only)
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
@ -2292,4 +2292,4 @@ Enrique Zanardi <ezanardi@ull.es>
|
|||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
# $Id: busybox.pod,v 1.80 2000/12/09 16:37:53 andersen Exp $
|
# $Id: busybox.pod,v 1.81 2000/12/11 16:24:16 andersen Exp $
|
||||||
|
@ -3022,8 +3022,8 @@
|
|||||||
-n Run as a foreground process
|
-n Run as a foreground process
|
||||||
-K Do not start up the klogd process
|
-K Do not start up the klogd process
|
||||||
-O FILE Use an alternate log file (default=/var/log/messages)
|
-O FILE Use an alternate log file (default=/var/log/messages)
|
||||||
-R HOST[:PORT] Log messages to HOST on PORT (default=514) over UDP.
|
-R HOST[:PORT] Log remotely to IP or hostname on PORT (default PORT=514/UDP)
|
||||||
-N Do not log anything locally -- network logging only
|
-L Log locally as well as network logging (defaut is network only)
|
||||||
</screen>
|
</screen>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ static char *RemoteHost;
|
|||||||
static int RemotePort = 514;
|
static int RemotePort = 514;
|
||||||
/* To remote log or not to remote log, that is the question. */
|
/* To remote log or not to remote log, that is the question. */
|
||||||
static int doRemoteLog = FALSE;
|
static int doRemoteLog = FALSE;
|
||||||
static int local_logging = TRUE;
|
static int local_logging = FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Note: There is also a function called "message()" in init.c */
|
/* Note: There is also a function called "message()" in init.c */
|
||||||
@ -531,8 +531,8 @@ extern int syslogd_main(int argc, char **argv)
|
|||||||
doRemoteLog = TRUE;
|
doRemoteLog = TRUE;
|
||||||
stopDoingThat = TRUE;
|
stopDoingThat = TRUE;
|
||||||
break;
|
break;
|
||||||
case 'N':
|
case 'L':
|
||||||
local_logging = FALSE;
|
local_logging = TRUE;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
|
@ -86,7 +86,7 @@ static char *RemoteHost;
|
|||||||
static int RemotePort = 514;
|
static int RemotePort = 514;
|
||||||
/* To remote log or not to remote log, that is the question. */
|
/* To remote log or not to remote log, that is the question. */
|
||||||
static int doRemoteLog = FALSE;
|
static int doRemoteLog = FALSE;
|
||||||
static int local_logging = TRUE;
|
static int local_logging = FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Note: There is also a function called "message()" in init.c */
|
/* Note: There is also a function called "message()" in init.c */
|
||||||
@ -531,8 +531,8 @@ extern int syslogd_main(int argc, char **argv)
|
|||||||
doRemoteLog = TRUE;
|
doRemoteLog = TRUE;
|
||||||
stopDoingThat = TRUE;
|
stopDoingThat = TRUE;
|
||||||
break;
|
break;
|
||||||
case 'N':
|
case 'L':
|
||||||
local_logging = FALSE;
|
local_logging = TRUE;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
|
2
usage.c
2
usage.c
@ -1176,7 +1176,7 @@ const char syslogd_usage[] =
|
|||||||
"\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n"
|
"\t-O FILE\t\tUse an alternate log file (default=/var/log/messages)\n"
|
||||||
#ifdef BB_FEATURE_REMOTE_LOG
|
#ifdef BB_FEATURE_REMOTE_LOG
|
||||||
"\t-R HOST[:PORT]\t\tLog remotely to IP or hostname on PORT (default PORT=514/UDP)\n"
|
"\t-R HOST[:PORT]\t\tLog remotely to IP or hostname on PORT (default PORT=514/UDP)\n"
|
||||||
"\t-N\t\tDo not log anything locally -- network logging only.\n"
|
"\t-L\t\tLog locally as well as network logging (defaut is network only)\n"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
Reference in New Issue
Block a user