From owner-freebsd-rc@FreeBSD.ORG Wed Apr 19 09:02:31 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 59C7316A406; Wed, 19 Apr 2006 09:02:31 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 262A643D53; Wed, 19 Apr 2006 09:02:29 +0000 (GMT) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 8FDA7EB3C8D; Wed, 19 Apr 2006 17:02:27 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id 48oyvLcwMupi; Wed, 19 Apr 2006 17:02:25 +0800 (CST) Received: from [10.217.12.81] (sina152-194.staff.sina.com.cn [61.135.152.194]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 84D1BEB3CCE; Wed, 19 Apr 2006 17:02:24 +0800 (CST) From: Xin LI To: Florent Thoumie In-Reply-To: <1145430829.900.20.camel@localhost> References: <20060419010352.GA54006@hub.freebsd.org> <1145430829.900.20.camel@localhost> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-WvzIz2QKFo0Mqb1RzkBg" Organization: The FreeBSD Project Date: Wed, 19 Apr 2006 17:02:19 +0800 Message-Id: <1145437339.924.31.camel@spirit> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port 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 09:02:31 -0000 --=-WvzIz2QKFo0Mqb1RzkBg Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Florent, =E5=9C=A8 2006-04-19=E4=B8=89=E7=9A=84 09:13 +0200=EF=BC=8CFlorent Thoumie= =E5=86=99=E9=81=93=EF=BC=9A [...] > 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. >=20 > After my latest commit to rc.d/named, ldconfig is started right after > mountcritremote (means ASAP), so this change doesn't really do anything. I would prefer that SERVERS to do REQUIRE: ldconfig for the following reasons: - SERVERS is the place (or divider) where we can ensure, say, critical early services, can start properly. We should implement the semantic. - Currently SERVERS already have a REQUIRE: line pointing to abi, which is, in my opinion, of the same nature with ldconfig. - With "BEFORE: named" we can effectively make ldconfig to run after our script. While BEFORE is generally not encouraged, I think it's confusing for programmer who writes rc.d scripts, and makes it hard to debug. Therefore I think making SERVERS to REQUIRE: ldconfig makes better protection for early startup daemons. Cheers, --=20 Xin LI http://www.delphij.net/ --=-WvzIz2QKFo0Mqb1RzkBg Content-Type: application/pgp-signature; name=signature.asc Content-Description: =?UTF-8?Q?=E8=BF=99=E6=98=AF=E4=BF=A1=E4=BB=B6=E7=9A=84=E6=95=B0?= =?UTF-8?Q?=E5=AD=97=E7=AD=BE=E5=90=8D=E9=83=A8=E5=88=86?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBERfybhcUczkLqiksRAvDgAKDWYAdAAB4yoB+LtxHsBmvll3mCggCg6ZdM /Y9o9YKRvyb4yuXo1epZjmk= =6lQ6 -----END PGP SIGNATURE----- --=-WvzIz2QKFo0Mqb1RzkBg--