From owner-freebsd-current Wed Oct 30 14:36: 6 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E009237B401 for ; Wed, 30 Oct 2002 14:36:04 -0800 (PST) Received: from mail-blue.research.att.com (H-135-207-30-102.research.att.com [135.207.30.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52BE843E3B for ; Wed, 30 Oct 2002 14:36:04 -0800 (PST) (envelope-from fenner@research.att.com) Received: from alliance.research.att.com (alliance.research.att.com [135.207.26.26]) by mail-blue.research.att.com (Postfix) with ESMTP id CB8984D0E3 for ; Wed, 30 Oct 2002 17:36:03 -0500 (EST) Received: from windsor.research.att.com (windsor.research.att.com [135.207.26.46]) by alliance.research.att.com (8.8.7/8.8.7) with ESMTP id RAA07193 for ; Wed, 30 Oct 2002 17:36:03 -0500 (EST) From: Bill Fenner Received: (from fenner@localhost) by windsor.research.att.com (8.8.8+Sun/8.8.5) id OAA26726; Wed, 30 Oct 2002 14:36:02 -0800 (PST) Message-Id: <200210302236.OAA26726@windsor.research.att.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: current@freebsd.org Subject: rc.d and sysctl.conf Date: Wed, 30 Oct 2002 14:36:01 -0800 Versions: dmail (solaris) 2.5a/makemail 2.9d Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG /etc/rc runs /etc/rc.sysctl twice: one "early", after mounting filesystems, reseeding the random number generator and adding a swap file, and before running rc.serial, rc.pccard, rc.network. one "late", after network_pass4 but before raising the securelevel. This was added in response to http://www.freebsd.org/cgi/query-pr.cgi?pr=19629 The update to the /etc/rc.d infrastructure keeps the ability to run twice, but does not actually run it twice. I started creating an /etc/rc.d/sysctl-last that would run "/etc/rc.d/sysctl lastload", but realized that I didn't know how to say where the first/second call should go. To strictly follow /etc/rc.d, I could change the existing /etc/rc.d/sysctl to say "BEFORE: serial" and add "BEFORE: securelevel" to sysctl-last, but I'm not sure this is appropriate given the meta-checkpoints that we have. (It also raises the question of if /etc/rc.d/securelevel actually runs at the right time. /etc/rc puts it almost at the absolute end, while rcorder sticks it somewhere in the middle -- number 67 of 102 on my system.) Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message