From mi@misha.cisco.com Thu Sep 16 09:24:11 1999
Return-Path: <mi@misha.cisco.com>
Received: from misha.cisco.com (misha.cisco.com [171.69.206.50])
	by hub.freebsd.org (Postfix) with ESMTP id F4167151B9
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Sep 1999 09:24:10 -0700 (PDT)
	(envelope-from mi@misha.cisco.com)
Received: (from mi@localhost)
	by misha.cisco.com (8.9.3/8.9.1) id MAA45940;
	Thu, 16 Sep 1999 12:24:09 -0400 (EDT)
	(envelope-from mi)
Message-Id: <199909161624.MAA45940@misha.cisco.com>
Date: Thu, 16 Sep 1999 12:24:09 -0400 (EDT)
From: Mikhail Teterin <mi@misha.cisco.com>
Reply-To: mi@aldan.algebra.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: multi-user boot may hang in NIS environment
X-Send-Pr-Version: 3.2

>Number:         13775
>Category:       conf
>Synopsis:       multi-user boot may hang in NIS environment
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-rc
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 16 11:20:02 PDT 1999
>Closed-Date:    
>Last-Modified:  Tue Mar 12 21:29:24 UTC 2013
>Originator:     Mikhail Teterin
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
Virtual Estates, Inc.
>Environment:

	In  our  setup  NIS  is  responsible  for  user,  group,
	services databases.

>Description:

	When the machine boots, /etc/rc is doing certain things,
	like chown, which fail/hang  since ypbind is not running
	yet.

	In particular,  things like chown (needs  user and group
	ids), mounting  NFS systems  (needs host  names), syslog
	(needs syslog service from services database).

>How-To-Repeat:

	In our environment, the /etc/services file consists only
	of a  single `+'. `+:::::::::'  follows the list  of the
	FreeBSD standard  "users". `+:::'  is the first  line of
	/etc/group.

	When such a setup boots,  one needs to press ^C and then
	start things like syslog manually.

>Fix:

	Probably, ypbind should go into network_pass1...

	A  workaround   is  to  put  the   syslog  service  into
	/etc/services. Change `chown  root:wheel' to `chown 0:0'
	in /etc/rc and put the NFS servers into /etc/hosts.

	This should not be needed...

>Release-Note:
>Audit-Trail:

From: Bill Fumerola <billf@jade.chc-chimes.com>
To: mi@aldan.algebra.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: conf/13775: multi-user boot may hang in NIS environment
Date: Thu, 16 Sep 1999 13:27:46 -0400 (EDT)

 On Thu, 16 Sep 1999, Mikhail Teterin wrote:
 
 > 	When the machine boots, /etc/rc is doing certain things,
 > 	like chown, which fail/hang  since ypbind is not running
 > 	yet.
 > 
 > 	In particular,  things like chown (needs  user and group
 > 	ids), mounting  NFS systems  (needs host  names), syslog
 > 	(needs syslog service from services database).
 
 Amen. This has bitten me a few times too.
 
 -- 
 - bill fumerola - billf@chc-chimes.com - BF1560 - computer horizons corp -
 - ph:(800) 252-2421 - bfumerol@computerhorizons.com - billf@FreeBSD.org  -
 
 
 
 
 
State-Changed-From-To: open->feedback 
State-Changed-By: mike 
State-Changed-When: Fri Jul 20 18:45:25 PDT 2001 
State-Changed-Why:  

Does this problem still occur in newer versions of FreeBSD, 
such as 4.3-RELEASE? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=13775 

From: Mike Barcroft <mike@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: conf/13775: multi-user boot may hang in NIS environment
Date: Mon, 23 Jul 2001 13:10:03 -0400

 Adding to Audit-Trail.
 
 ----- Forwarded message from Mikhail Teterin <mi@aldan.algebra.com> -----
 
 Delivered-To: mike@freebsd.org
 Date: Mon, 23 Jul 2001 11:17:52 -0400 (EDT)
 From: Mikhail Teterin <mi@aldan.algebra.com>
 Subject: Re: conf/13775: multi-user boot may hang in NIS environment
 To: mike@FreeBSD.org
 Cc: freebsd-bugs@FreeBSD.org, billf@FreeBSD.org
 In-Reply-To: <200107210145.f6L1jhH60693@freefall.freebsd.org>
 
 On 20 Jul, mike@FreeBSD.org wrote:
 > Synopsis: multi-user boot may hang in NIS environment
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: mike
 > State-Changed-When: Fri Jul 20 18:45:25 PDT 2001
 > State-Changed-Why: 
 > 
 > Does this problem still occur in newer versions of FreeBSD,
 > such as 4.3-RELEASE?
 
 Well, I suppose  it does. I don't  think, the loud calls  for PR closing
 implies they need to be handled  like this... The problem description, I
 believe, is pretty  clear -- until the NIS-client is  started before the
 syslogd, the syslogd  will hang trying to figure out  the port number of
 the syslog  service (if the  services database is  NIS-distributed). And
 the glimpse over /etc/rc and /etc/rc.network  shows that it is still the
 case.
 
 Then, of course,  since I left the company where  I observed the problem
 well over a year ago, I can not confirm this 100%. Only 99...
 
 Bill, now  that Mike brought  this up, may be,  you, who were  bitten by
 this "a  few times" too,  can arrange for  moving of the  NIS-stuff from
 network_pass2 to network_pass1?
 
 > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=13775
 
 	-mi
 
 
 
 ----- End forwarded message -----
State-Changed-From-To: feedback->suspended 
State-Changed-By: mike 
State-Changed-When: Mon Jul 23 16:59:53 PDT 2001 
State-Changed-Why:  

This is still a problem.  Awaiting fix and committer. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=13775 

From: Madison Coleman <madisonkay412@yahoo.com>
To: "bug-followup@FreeBSD.org" <bug-followup@FreeBSD.org>,
  "mi@aldan.algebra.com" <mi@aldan.algebra.com>
Cc:  
Subject: Re: conf/13775: multi-user boot may hang in NIS environment
Date: Fri, 29 Apr 2011 18:12:33 -0700 (PDT)

 Itouch is always be redirected and it allow https ( safesite)
 
 Sent from my iPod
 
State-Changed-From-To: suspended->feedback 
State-Changed-By: crees 
State-Changed-When: Tue Mar 12 21:25:03 UTC 2013 
State-Changed-Why:  
[crees@pegasus]~% rcorder /etc/rc.d/* | grep -E 
'ypbind|devfs|ipfs|mdconfig2|named' /etc/rc.d/ipfs /etc/rc.d/devfs 
/etc/rc.d/mdconfig2 /etc/rc.d/named /etc/rc.d/ypbind 

The above scripts use chown and run before ypbind, but no longer 
including syslogd.  devfs and mdconfig only use chown if configured to, 
and ipfs only on first running. 

The only real one that may cause an issue is named, which we could 
probably switch to using 0:0 

Do you know if this is still a problem? 


Responsible-Changed-From-To: freebsd-bugs->freebsd-rc 
Responsible-Changed-By: crees 
Responsible-Changed-When: Tue Mar 12 21:25:03 UTC 2013 
Responsible-Changed-Why:  
RC PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=13775 
>Unformatted:
