From owner-freebsd-current Sat May 18 18:51:36 2002 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 821) id 79B7037B400; Sat, 18 May 2002 18:51:31 -0700 (PDT) Date: Sat, 18 May 2002 18:51:31 -0700 From: John De Boskey To: Current List Subject: Inetd configuration message logging (or lack thereof) Message-ID: <20020518185131.A86082@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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