From 1bfba3b0be32306b078f5ee527b864e758b2c77b Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 26 Apr 2019 15:52:54 +0000 Subject: Make a single hpr. Full doc, first draft. --- doc/s6-linux-init.html | 154 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 doc/s6-linux-init.html (limited to 'doc/s6-linux-init.html') diff --git a/doc/s6-linux-init.html b/doc/s6-linux-init.html new file mode 100644 index 0000000..a4bb636 --- /dev/null +++ b/doc/s6-linux-init.html @@ -0,0 +1,154 @@ + + + + + + s6-linux-init: the s6-linux-init program + + + + + + +

+s6-linux-init
+Software
+skarnet.org +

+ +

The s6-linux-init program

+ +

+s6-linux-init is a program that is meant to run as pid 1, +as a stage 1 init: it performs the necessary early system preparation +and execs into s6-svscan. +

+ +

Interface

+ +
+     s6-linux-init [ -c basedir ] [ -p initial_path ] [ -s env_store ] [ -m umask ] [ -d dev_style ] [ -D initdefault ] [ args... ]
+
+ + + +

Options

+ +

+ These options should exactly mirror the options with the same name that +have been given to s6-linux-init-maker. +If there is a discrepancy, the system might not boot. +

+ + + +

Early preparation

+ +

+ When booting a system, s6-linux-init performs the following +operations: +

+ + + +

+ By the time rc.init runs, +s6-svscan is running +as pid 1 and has spawned its early services - at least the catch-all logger, +and the other services, including the early getty if it has been defined, are +started in parallel and will be ready instantly. rc.init can then +perform stage 2 of the initialization process, i.e. the initialization +sequence per se. +

+ +

Notes

+ +
    +
  • The s6-linux-init +binary is not meant to be called directly, or be linked to /sbin/init +directly, because it takes command-line options. + Instead, after a +s6-linux-init-maker invocation, +the bin/ subdirectory of the target will contain a script called +init, which execs into s6-linux-init with the appropriate +command-line options, and is suitable as a /sbin/init program. +The bin/ subdirectory +should be copied by the administrator into /sbin for full +interface compatibility with sysvinit.
  • +
+ + + -- cgit v1.3.1