Date: Sat, 18 May 2002 18:51:31 -0700 From: John De Boskey <jwd@FreeBSD.org> To: Current List <freebsd-current@FreeBSD.org> Subject: Inetd configuration message logging (or lack thereof) Message-ID: <20020518185131.A86082@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
Hi,
Comments on the following patch. The messages
are invisible with a default install. This patch
gets them into /var/log/messages where they can be
seen.
-John
ps: Not in this patch, but I wonder if syslog
cannot be redirected to the console when run -d.
Something like:
#define syslog InetdSyslog
void InetdSyslog(int,char *, ...);
void
InetdSyslog(int priority,char *message, ...)
{
va_list ap;
va_start(ap, message);
if (debug) {
vfprintf(stderr,message,ap);
fprintf(stderr,"\n");
}
else
vsyslog(priority,message,ap);
va_end(message);
return;
}
RCS file: /home/ncvs/src/usr.sbin/inetd/inetd.c,v
retrieving revision 1.96
diff -u -r1.96 inetd.c
--- inetd.c 8 May 2002 17:20:08 -0000 1.96
+++ inetd.c 19 May 2002 01:04:56 -0000
@@ -1613,7 +1613,7 @@
}
if (strncmp(sep->se_proto, "rpc/", 4) == 0) {
if (no_v4bind != 0) {
- syslog(LOG_INFO, "IPv4 bind is ignored for %s",
+ syslog(LOG_NOTICE, "IPv4 bind is ignored for %s",
sep->se_service);
freeconfig(sep);
goto more;
@@ -1654,7 +1654,7 @@
#ifdef INET6
if (sep->se_proto[strlen(sep->se_proto) - 1] == '6') {
if (no_v6bind != 0) {
- syslog(LOG_INFO, "IPv6 bind is ignored for %s",
+ syslog(LOG_NOTICE, "IPv6 bind is ignored for %s",
sep->se_service);
freeconfig(sep);
goto more;
@@ -1686,7 +1686,7 @@
#endif
{ /* default to v4 bind if not v6 bind */
if (no_v4bind != 0) {
- syslog(LOG_INFO, "IPv4 bind is ignored for %s",
+ syslog(LOG_NOTICE, "IPv4 bind is ignored for %s",
sep->se_service);
freeconfig(sep);
goto more;
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020518185131.A86082>
