s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

commit ef34881158cd05335f7a3dd9de506d31e45c59e8
parent 1f918a696d642a4e995df648400a6bda282357fb
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Tue, 28 Jun 2022 20:54:28 +0000

 Doc obfuscation: does init have 3 or 4 stages?

Signed-off-by: Laurent Bercot <ska@appnovation.com>

Diffstat:
Mdoc/s6-svscan-1.html | 13++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/doc/s6-svscan-1.html b/doc/s6-svscan-1.html @@ -38,7 +38,13 @@ bit of understanding of what is going on. </a> <p> - The life of a Unix machine has four stages: +<small> Okay, it's actually four, but the fourth stage is an implementation +detail that users don't care about, so we'll stick with three. </small> +</p> + +<p> + The life of a Unix machine has three stages. + <small>Yes, three.</small> </p> <ol> @@ -69,6 +75,11 @@ powers it off is called. </li> </ol> <p> +<small> Unless you're implementing a shutdown procedure over a supervision +tree, you can absolutely consider that the hardware shutdown is part of stage 3. </small> +</p> + +<p> As you can see, process 1's duties are <em>radically different</em> from one stage to the next, and init has the most work when the machine is booting or shutting down, which means a normally negligible fraction