From owner-freebsd-rc@FreeBSD.ORG Wed Apr 19 01:03:52 2006 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: by hub.freebsd.org (Postfix, from userid 1035) id DBC4516A403; Wed, 19 Apr 2006 01:03:52 +0000 (UTC) Date: Wed, 19 Apr 2006 01:03:52 +0000 From: Xin LI To: freebsd-rc@FreeBSD.org Message-ID: <20060419010352.GA54006@hub.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: Subject: rc.d/SERVER patch for review (Reorder to make ldconfig start _before_ SERVER) X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 01:03:52 -0000 --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, Here is a patch that moves ldconfig before SERVER. The reason is that: - Now we start /usr/local/etc/rc.d scripts in the same order of base system rc.d scripts. - It is possible that a dynamically linked local daemon is started after SERVER, which requires ldconfig to be run before to function correctly. - According to the current rcorder ldconfig would start _after_ SERVER, which makes no guarantee that it was run before actual consumer. The attachment contains a tested patch that makes ldconfig a dependency of SERVER, thus makes it available for the application before actual SERVER daemons. Any comments? Thanks in advance! Cheers, --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-rcng Index: SERVERS =================================================================== RCS file: /home/ncvs/src/etc/rc.d/SERVERS,v retrieving revision 1.6 diff -u -r1.6 SERVERS --- SERVERS 19 Feb 2006 08:18:48 -0000 1.6 +++ SERVERS 18 Apr 2006 13:38:33 -0000 @@ -5,7 +5,7 @@ # # PROVIDE: SERVERS -# REQUIRE: mountcritremote abi +# REQUIRE: mountcritremote abi ldconfig # This is a dummy dependency, for early-start servers relying on # some basic configuration. --LQksG6bCIzRHxTLp--