tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Improving the performance of system boot by eliding unused rc.d scripts and caching the result
> On Aug 18, 2026, at 9:46 AM, Robert Elz <kre%munnari.oz.au@localhost> 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
Home |
Main Index |
Thread Index |
Old Index