From dfa16e4a89158f3d3198db71e2eba3bda9330078 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 10 Sep 2016 13:29:56 +0000 Subject: Make s6-linux-init a real init package. This means: - removing leaky options to s6-linux-init-maker. Default initial_path is now always /usr/bin:/bin; the uid and gid of the catch-all logger (used at boot time) can now be given numerically instead of relying on the (run-time) user db mapping. - moving s6-halt, s6-poweroff and s6-reboot over here, from s6-linux-utils - clarifying on the documentation a bit. --- doc/index.html | 6 ++- doc/quickstart.html | 11 ++++- doc/s6-halt.html | 55 ++++++++++++++++++++++ doc/s6-linux-init-maker.html | 110 ++++++++++++++++++++++++++----------------- doc/s6-poweroff.html | 55 ++++++++++++++++++++++ doc/s6-reboot.html | 55 ++++++++++++++++++++++ doc/upgrade.html | 7 +++ 7 files changed, 255 insertions(+), 44 deletions(-) create mode 100644 doc/s6-halt.html create mode 100644 doc/s6-poweroff.html create mode 100644 doc/s6-reboot.html (limited to 'doc') diff --git a/doc/index.html b/doc/index.html index 47226b4..5c39b78 100644 --- a/doc/index.html +++ b/doc/index.html @@ -64,7 +64,8 @@ a small FAQ.

When you build s6-linux-init, the s6-linux-init-maker tool -is created; then you run that tool to create an init script, +is created (as well as the shutdown commands); + then you run that tool to create an init script, and then you can boot your system on that init script.

@@ -122,6 +123,9 @@ the previous versions of s6-linux-init and the current one.

Related resources

diff --git a/doc/quickstart.html b/doc/quickstart.html index bd758b1..dac9779 100644 --- a/doc/quickstart.html +++ b/doc/quickstart.html @@ -20,7 +20,7 @@

Quickstart

-

The examples/ subdirectory of the s6-linux-init package @@ -251,11 +266,24 @@ launcher and the first few early commands before PATH can be set. found. It must be absolute. Default is /bin.

-

  • -u log_user : the catch-all -logger will not run as root, but as log_user. Default is -nobody.
  • +

  • -u log_uid : the catch-all +logger will run with the uid log_uid. Default is 0.
  • + +

  • -g log_gid : the catch-all +logger will run with the gid log_gid. Default is 0.
  • + +

  • -U : the correct log_uid and +log_gid values for the catch-all logger will be read from the +UID and GID environment variables that have been passed to +s6-linux-init-maker. This allows for invocations such as +s6-envuidgid nobody s6-linux-init-maker -U ... so that +the catch-all logger runs as the nobody user. Be aware that +this option is only safe when the user database on the +boot-time machine is the same as on the run-time +machine, else the catch-all logger may run with an unexpected uid +and gid.
  • -
  • -g early_getty : if this option +
  • -G early_getty : if this option is set, s6-linux-init-maker will define a service that will run very early, before stage2 is executed. This early service should be a getty, to allow logins even if stage2 fails. @@ -297,9 +325,7 @@ absolutely necessary for s6-portable-utils and s6-linux-utils binaries to be accessible via initial_path, else the machine -will not boot. Default is the value that has been compiled in -skalibs via the ---with-default-path configure option, i.e. by default +will not boot. Default is /usr/bin:/bin.
  • -m initial_umask : the value of diff --git a/doc/s6-poweroff.html b/doc/s6-poweroff.html new file mode 100644 index 0000000..9a268af --- /dev/null +++ b/doc/s6-poweroff.html @@ -0,0 +1,55 @@ + + + + + + s6-linux-init: the s6-poweroff program + + + + + + +

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

    + +

    The s6-poweroff program

    + +

    +s6-poweroff sends a signal to process 1 in order to power off the machine; +or, with the -f option, it performs an immediate hard shutdown. +

    + +

    Interface

    + +
    +     s6-poweroff [ -h | -p | -r ] [ -f ]
    +
    + + + +

    Options

    + + + + + diff --git a/doc/s6-reboot.html b/doc/s6-reboot.html new file mode 100644 index 0000000..e116235 --- /dev/null +++ b/doc/s6-reboot.html @@ -0,0 +1,55 @@ + + + + + + s6-linux-init: the s6-reboot program + + + + + + +

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

    + +

    The s6-reboot program

    + +

    +s6-reboot sends a signal to process 1 in order to reboot the machine; +or, with the -f option, it performs an immediate reboot. +

    + +

    Interface

    + +
    +     s6-reboot [ -h | -p | -r ] [ -f ]
    +
    + + + +

    Options

    + + + + + diff --git a/doc/upgrade.html b/doc/upgrade.html index 49dbb2e..bc2c722 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -31,6 +31,13 @@ dependency bumped to 2.1.0.0.
  • dependency bumped to 2.2.0.0.
  • s6 dependency bumped to 2.4.0.0.
  • +
  • s6-halt, + s6-poweroff and + s6-reboot moved from +s6-linux-utils +to s6-linux-init.
  • +
  • s6-linux-init-maker +options modified. (Read the documentation!)
  • in 0.1.0.0

    -- cgit v1.2.3