From nobody@FreeBSD.org  Wed Nov 28 17:33:35 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 12EB916A41A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 28 Nov 2007 17:33:35 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 0045813C447
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 28 Nov 2007 17:33:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id lASHXQfX072812
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 28 Nov 2007 17:33:26 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id lASHXQAA072811;
	Wed, 28 Nov 2007 17:33:26 GMT
	(envelope-from nobody)
Message-Id: <200711281733.lASHXQAA072811@www.freebsd.org>
Date: Wed, 28 Nov 2007 17:33:26 GMT
From: Andriy Syrovenko <andriys@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Local startup scripts run twice
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         118315
>Category:       conf
>Synopsis:       Local startup scripts run twice
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 28 17:40:01 UTC 2007
>Closed-Date:    Mon Aug 17 07:07:08 UTC 2009
>Last-Modified:  Mon Aug 17 07:07:08 UTC 2009
>Originator:     Andriy Syrovenko
>Release:        6.3-PRERELEASE
>Organization:
>Environment:
FreeBSD mosk.nirvana.intra 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #0: Sat Nov 24 01:21:13 EET 2007     root@mosk.nirvana.intra:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The /usr/X11R6 is now a symlink to /usr/local, so both of the two paths /usr/local/etc/ and /usr/X11R6/etc/rc.d are now point to the same directory. However in the /etc/defaults/rc.conf file the 'local_startup' variable is still set to:

local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d"

This causes the local startup scripts be invoked twice on startup and shutdown of the system.

>How-To-Repeat:

>Fix:
Change the 'local_startup' to

local_startup="/usr/local/etc/rc.d"

in the /etc/defaults/rc.conf file.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: remko 
Responsible-Changed-When: Wed Nov 28 17:45:49 UTC 2007 
Responsible-Changed-Why:  
Hello Doug, in a commit to defaults/rc.conf you mention that a script is in 
works that avoids duplication for running startup files twice.  This ticket 
talks about that as well. Can you perhaps handle this one? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118315 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Mon Aug 17 07:04:22 UTC 2009 
State-Changed-Why:  

This problem was solved a different way, but removing /usr/X11R6 
from the list of local_startup directories in /etc/defaults/rc.conf. 

While a more generalized solution is probably desirable, it will 
have to wait for another day. 

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