From blaz@gold.amis.net  Sun Feb  7 14:51:43 1999
Received: from server.amis.net (server.amis.net [195.10.52.10])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA28710
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 7 Feb 1999 14:51:39 -0800 (PST)
          (envelope-from blaz@gold.amis.net)
Received: (from uucp@localhost)
	by server.amis.net (8.8.8/8.8.8) with UUCP id XAA18850
	for FreeBSD-gnats-submit@freebsd.org; Sun, 7 Feb 1999 23:51:29 +0100 (CET)
Received: (qmail 2016 invoked by uid 1000); 7 Feb 1999 22:51:12 -0000
Message-Id: <19990207225112.2015.qmail@gold.amis.net>
Date: 7 Feb 1999 22:51:12 -0000
From: blaz@gold.amis.net
Reply-To: blaz@gold.amis.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: isdnd too verbose during startup from /etc/rc.network
X-Send-Pr-Version: 3.2

>Number:         9957
>Category:       conf
>Synopsis:       isdnd too verbose during startup from /etc/rc.network
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    hm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb  7 15:00:00 PST 1999
>Closed-Date:    Mon Mar 8 03:29:59 PST 1999
>Last-Modified:  Mon Mar  8 03:33:10 PST 1999
>Originator:     Blaz Zupan
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

	doesn't matter

>Description:

	isdnd uses openlog()'s with LOG_CONS. When isdnd is started
	during system startup from /etc/rc.network, syslogd is not yet
	running, so the initial messages are displayed to the console,
	which makes it impossible to see any possible error messages
	that could be displayed by other parts of the startup scripts.

>How-To-Repeat:

	try to use i4b under -current and notice ugly config file parsing
	being displayed on the console during system startup

>Fix:
	
	Apply the following patch to usr.sbin/i4b/isdnd/log.c:
	

*** /usr/src/usr.sbin/i4b/isdnd/log.c.old	Sun Dec 27 22:47:01 1998
--- /usr/src/usr.sbin/i4b/isdnd/log.c	Sun Feb  7 23:42:17 1999
***************
*** 100,106 ****
  				logfacility);
  		else
  #endif
! 		(void)openlog("isdnd", LOG_PID|LOG_CONS|LOG_NDELAY,
  				logfacility);
  	}
  
--- 100,106 ----
  				logfacility);
  		else
  #endif
! 		(void)openlog("isdnd", LOG_PID|LOG_NDELAY,
  				logfacility);
  	}
  




	Also the following patch could be applied to etc/rc.network,
	otherwise "isdnd" is displayed on a new line by itself during
	startup like this:
	
	...
	Doing initial network setup: hostname.
	 isdnd
	...
	
*** /usr/src/etc/rc.network.orig	Thu Jan 14 00:18:07 1999
--- /usr/src/etc/rc.network	Wed Jan 20 19:20:28 1999
***************
*** 23,39 ****
  	    domainname $nisdomainname
  	    echo -n ' domain'
      fi
      echo '.'
  
      # Initial ATM interface configuration
      if [ "X${atm_enable}" = X"YES" -a -f /etc/rc.atm ]; then
  	    . /etc/rc.atm
  	    atm_pass1
-     fi
- 
-     # ISDN subsystem startup
-     if [ "X${isdn_enable}" = X"YES" -a -f /etc/rc.isdn ]; then
- 	    . /etc/rc.isdn
      fi
  
      # Special options for sppp(4) interfaces go here.  These need
--- 23,40 ----
  	    domainname $nisdomainname
  	    echo -n ' domain'
      fi
+ 
+     # ISDN subsystem startup
+     if [ "X${isdn_enable}" = X"YES" -a -f /etc/rc.isdn ]; then
+ 	    . /etc/rc.isdn
+     fi
+ 
      echo '.'
  
      # Initial ATM interface configuration
      if [ "X${atm_enable}" = X"YES" -a -f /etc/rc.atm ]; then
  	    . /etc/rc.atm
  	    atm_pass1
      fi
  
      # Special options for sppp(4) interfaces go here.  These need

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->hm 
Responsible-Changed-By: hm 
Responsible-Changed-When: Mon Feb 15 08:28:20 PST 1999 
Responsible-Changed-Why:  
State-Changed-From-To: open->closed 
State-Changed-By: hm 
State-Changed-When: Mon Mar 8 03:29:59 PST 1999 
State-Changed-Why:  
The mentioned probelems were fixed by the recent upgrade to i4b 0.7100.00 which 
introduced a debug flag to reduce the verbosity of isdnd during startup and 
by a change to /etc/rc.isdn to properly format the system startup messages 
which was just committed. 
>Unformatted:
