Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 2020 09:09:07 +1000
From:      Dewayne Geraghty <dewayne@heuristicsystems.com.au>
To:        FreeBSD Stable Mailing List <freebsd-stable@freebsd.org>
Subject:   init_exec precedence, before or after init_script?
Message-ID:  <4c288d32-9e38-4e75-caf7-78bab1dd20c1@heuristicsystems.com.au>

next in thread | raw e-mail | index | archive | help
A recent change to init, has introduced the welcome init_exec kenv.
Unfortunately "man init" indicates ambiguity as both: init_script and
init_exec are run as "the very first action".  So that needs a change.

Due to this ambiguity I referred to the source, and init_exec is
performed first.  As init_script has been around for awhile, may I
suggest that it be first and init_exec then take over the PID 1 position?

It also suits my use case, where I have a script that does some file
system work before transferring to init_exec, something I look forward
to taking advantage of (rather than my current init hack) ;)

Regards, Dewayne



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4c288d32-9e38-4e75-caf7-78bab1dd20c1>