Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result

Jason Thorpe <[email protected]>
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>
> On Aug 18, 2026, at 9:46 AM, Robert Elz <[email protected]> wrote:
> 
> My only reservation about the proposed technique is in convincing myself
> that there is absolutely no way that the caching method can ever fail to
> fail to be used when something has been altered (even if, for example,
> I were to use my "nmvi" script - which edits files without altering their
> modification date - the files st_ctime does get changed however - to edit
> rc.conf, and that it can always detect added and removed rc.d files.

I guess that boils down to “what does test do with -nt”?

> And one question, how does any of this apply to shutting the system down,
> and running the appropriate scripts (in reverse order) at shutdown time?

There is no impact to shutdown sequencing.  Shutdown has a completely different criterial for rc.d script selection (must have “KEYWORD: shutdown”), and that list is much, much smaller.

-- thorpej
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.