Skip site navigation (1)Skip section navigation (2)
Date:      7 Feb 1999 22:51:12 -0000
From:      blaz@gold.amis.net
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   conf/9957: isdnd too verbose during startup from /etc/rc.network
Message-ID:  <19990207225112.2015.qmail@gold.amis.net>

next in thread | raw e-mail | index | archive | help

>Number:         9957
>Category:       conf
>Synopsis:       isdnd too verbose during startup from /etc/rc.network
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb  7 15:00:00 PST 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990207225112.2015.qmail>