From owner-freebsd-rc@FreeBSD.ORG Wed Apr 19 17:14:14 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B18916A401; Wed, 19 Apr 2006 17:14:14 +0000 (UTC) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1197943D46; Wed, 19 Apr 2006 17:14:14 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id k3JHEDi7015882; Wed, 19 Apr 2006 10:14:13 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k3JHEDML015881; Wed, 19 Apr 2006 10:14:13 -0700 Date: Wed, 19 Apr 2006 10:14:13 -0700 From: Brooks Davis To: Florent Thoumie Message-ID: <20060419171413.GB11251@odin.ac.hmc.edu> References: <20060419010352.GA54006@hub.freebsd.org> <1145430829.900.20.camel@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="b5gNqxB1S1yM7hjW" Content-Disposition: inline In-Reply-To: <1145430829.900.20.camel@localhost> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-rc@freebsd.org Subject: Re: 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 17:14:14 -0000 --b5gNqxB1S1yM7hjW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 19, 2006 at 09:13:49AM +0200, Florent Thoumie wrote: > On Wed, 2006-04-19 at 01:03 +0000, Xin LI wrote: > > Hi, > >=20 > > Here is a patch that moves ldconfig before SERVER. The reason is that: > >=20 > > - 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. > >=20 > > The attachment contains a tested patch that makes ldconfig a dependency > > of SERVER, thus makes it available for the application before actual > > SERVER daemons. > >=20 > > Any comments? >=20 > I'd rather like seeing ports rc.d scripts fixed to require either DAEMON > or LOGIN, depending on if they should run as root or not. I'd like to see this added to portlint as a warning if possible. I haven't looked into it enough to know how hard that would be. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --b5gNqxB1S1yM7hjW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFERm/lXY6L6fI4GtQRAnGGAKCsNMthgsxmBoxrP2N/PQ7Uf1pjXwCgohRE qqRs4fqnDBWowobFuJdbySI= =cjsV -----END PGP SIGNATURE----- --b5gNqxB1S1yM7hjW--