From owner-freebsd-stable@FreeBSD.ORG Mon May 28 18:03:47 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 06D6B16A468 for ; Mon, 28 May 2007 18:03:47 +0000 (UTC) (envelope-from SRS1=e0c55a7cbd5b53012065060fbbd723718bc2c413=es.net==e0c55a7cbd5b53012065060fbbd723718bc2c413=349=es.net=oberman@es.net) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.freebsd.org (Postfix) with ESMTP id DDAA013C458 for ; Mon, 28 May 2007 18:03:46 +0000 (UTC) (envelope-from SRS1=e0c55a7cbd5b53012065060fbbd723718bc2c413=es.net==e0c55a7cbd5b53012065060fbbd723718bc2c413=349=es.net=oberman@es.net) Received: from postal1.es.net (postal4.es.net [198.124.252.66]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id HWY93008 for ; Mon, 28 May 2007 10:48:08 -0700 Received: from postal1.es.net (postal2.es.net [198.128.3.206]) by postal4.es.net (Postal Node 4) with ESMTP (SSL) id HWY31807 for ; Mon, 28 May 2007 10:48:07 -0700 Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id HWY87605; Mon, 28 May 2007 10:48:05 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id D9EE445054; Mon, 28 May 2007 10:48:05 -0700 (PDT) To: Duane Whitty In-Reply-To: Your message of "Sun, 27 May 2007 16:34:19 -0300." <20070527193419.GA903@dwpc.dwlabs.ca> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1180374485_51945P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Mon, 28 May 2007 10:48:05 -0700 From: "Kevin Oberman" Message-Id: <20070528174805.D9EE445054@ptavv.es.net> Cc: freebsd-stable@freebsd.org, Pascal Hofstee Subject: Re: Some local rc scripts running twice X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2007 18:03:47 -0000 --==_Exmh_1180374485_51945P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Date: Sun, 27 May 2007 16:34:19 -0300 > From: Duane Whitty > Sender: owner-freebsd-stable@freebsd.org > > Hi Pascal, > > Much thanks! > > On Sunday, 27 May 2007 at 14:11:13 +0200, Pascal Hofstee wrote: > > On Sun, 2007-05-27 at 03:48 -0300, Duane Whitty wrote: > > > Has anyone else encountered local rc scripts running > > > twice? I thought I saw something about this on one > > > of the @freebsd.org lists but my search efforts haven't > > > located it yet. > > > > In assuming "local rc scripts" means anything installed by ports ... i > > am assuming you installed a fresh Xorg-7.2 and now at some point ended > > up with the /usr/X11R6 -> /usr/local symlink. > > > > If the above assumption holds true ... did you run the mergebase.sh > > script as suggested in /usr/ports/UPDATING ? > > > > The above assumptions are correct and mergebase.sh did run. > > > Most significantly .. this script adds the following entry to > > your /etc/rc.conf > > > > local_startup="/usr/local/etc/rc.d" > > > > This was the problem. Adding this to my /etc/rc.conf manually > fixed everything up for me. Thanks! > > > > > The default entry in /etc/defaults/rc.conf still > > references /usr/X1R6/etc/rc.d as well ... since the latter is now a > > symlink to the former, both rc.d-paths contain the same scripts. > > > > If your rc.conf doesn't contain the aforementioned entry, that would > > explain why local rc-scripts are started twice. > > > > Yeah, that does it explain it. The mergebase.sh script failed > unfortunately and I needed to take manual steps to complete > the upgrade process. > > When the script failed due to conflicting files I deleted the > files that were listed, re-ran the script, got the same conflicts, > and then created the symlink myself. Unfortunately, the rc.conf > entry didn't get added as well. I am left wondering if other > things that were supposed to happen did not happen. > > When operator error complicates matters, as it has in this case, > no script can deal with all possible scenarios. So, to all the > people who worked on making this upgrade happen, please don't > take this as a criticism of the script or upgrade process If ./etc is mounted read-only, the file is not updated and I got no warning about the failure from the script. As a result I need to hand-edit both rc.conf and periodic to fix stuff properly. I don't suspect having a RO /etc is all that common, but I am sure others will hit this, too. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1180374485_51945P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFGWxXVkn3rs5h7N1ERApFWAKCYNONrBrQTcDbzfS0BIDrNqJzmewCdFKcj jcbITSFhmgEFjgIujT73L5k= =Nxtm -----END PGP SIGNATURE----- --==_Exmh_1180374485_51945P--