From a491c627e09aa1149196dd40cb377d181db0580a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 7 Jul 2015 14:39:16 +0000 Subject: - Minor fixes to s6-rc - More doc --- doc/s6-rc-init.html | 168 +++++++++++++++------------------------------------- 1 file changed, 47 insertions(+), 121 deletions(-) (limited to 'doc/s6-rc-init.html') diff --git a/doc/s6-rc-init.html b/doc/s6-rc-init.html index 143a0f4..f2bd8e1 100644 --- a/doc/s6-rc-init.html +++ b/doc/s6-rc-init.html @@ -20,149 +20,75 @@

s6-rc-init is an initialization tool for the s6-rc -system. It must be run at boot time, prior to any +system. It must be run as root, at boot time, prior to any invocation of the s6-rc binary.

-

Requirements

- -

Interface

-     s6-rc-init [ -v verbosity ] [ servicenames... ]
+     s6-rc-init [ -c compiled ] [ -l live ] [ -t timeout ] scandir
 
+
  • compiled, live and scandir must be +absolute paths.
  • +
  • s6-rc-init expects to find a compiled service database +in compiled. It expects to be able to create a directory +at live. It also expects that an instance of +s6-svscan +is running on scandir.
  • +
  • s6-rc-init initializes the live state in live. It +declares compiled as the current service database and +sets the state as "all services down".
  • +
  • It then copies verbatim all +the service directories declared by compiled into a +subdirectory of live, adds down files to the live copies +and links them into scandir. It then triggers +s6-svscan, +which will pick up the new service directories and start +http://skarnet.org/software/s6/s6-supervise.html">s6-supervise +processes on them - but the service themselves will not be started +right away, because of the down files.
  • +
  • s6-rc-init waits for all s6-supervise processes to be +operational, then exits 0.
  • Options

    -

    s6-rc control

    - - - -

    Up or down

    - -

    Service selection

    - - +

    Typical usage

    -

    Actions

    - - - -

    Usage examples

    - -
     s6-rc myservicebundle 

    - Brings up all the services represented by myservicebundle, -dependencies first. + Administrators should invoke s6-rc-init once, in their +early boot scripts, after s6-svscan is functional but before any +other initialization. (The rest of the initialization can be +written as a set of s6-rc services, and performed by just one +invocation of the s6-rc change command.)

    -
     s6-rc -Sad 

    - Brings down all the services in an orderly manner. This is typically -run at shutdown time. + For instance, when using an init created by +s6-linux-init, +s6-rc-init should be the first command in the +stage2 (by default /etc/rc.init) script.

    -
     s6-rc -Au myservicebundle 
    -

    - Prints the names of all atomic services represented by -myservicebundle, as well as everything they depend on. -

    - -
     s6-rc -Ad myservicebundle 
    -

    - Prints the names of all atomic services represented by -myservicebundle, as well as everything that depends on them. -

    - -
     s6-rc -pun0 myservicebundle 
    -

    - Prints what s6-rc would do to bring the state to just -myservicebundle and its dependencies. -

    - - -

    Internals

    - -- cgit v1.2.3