Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2002 14:36:01 -0800
From:      Bill Fenner <fenner@research.att.com>
To:        current@freebsd.org
Subject:   rc.d and sysctl.conf
Message-ID:  <200210302236.OAA26726@windsor.research.att.com>

next in thread | raw e-mail | index | archive | help

/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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210302236.OAA26726>