aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-10-30 21:48:44 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2025-10-30 21:48:44 +0000
commit6fc2d7953120668622f0cb3e4f771084eb77ca4c (patch)
treef7702bb49902ff8c31ce07e0a8a242026527f647 /doc
parent0eb06a992d6f9644d107338df792d49355ef8e40 (diff)
downloads6-rc-6fc2d7953120668622f0cb3e4f771084eb77ca4c.tar.gz
Add missing doc pages
Diffstat (limited to 'doc')
-rw-r--r--doc/s6-rc-set-commit.html118
-rw-r--r--doc/s6-rc-set-install.html106
2 files changed, 224 insertions, 0 deletions
diff --git a/doc/s6-rc-set-commit.html b/doc/s6-rc-set-commit.html
new file mode 100644
index 0000000..a331d00
--- /dev/null
+++ b/doc/s6-rc-set-commit.html
@@ -0,0 +1,118 @@
+<html>
+ <head>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta http-equiv="Content-Language" content="en" />
+ <title>s6-rc: the s6-rc-set-commit program</title>
+ <meta name="Description" content="s6-rc: the s6-rc-set-commit program" />
+ <meta name="Keywords" content="s6-rc s6-rc-set-commit repo set commit compile" />
+ <!-- <link rel="stylesheet" type="text/css" href="//skarnet.org/default.css" /> -->
+ </head>
+<body>
+
+<p>
+<a href="index.html">s6-rc</a><br />
+<a href="//skarnet.org/software/">Software</a><br />
+<a href="//skarnet.org/">skarnet.org</a>
+</p>
+
+<h1> The s6-rc-set-commit program </h1>
+
+<p>
+ s6-rc-set-commit compiles a <a href="repodefs.html#set">set</a> of services,
+ensuring it is ready for installation.
+</p>
+
+<h2> Interface </h2>
+
+<pre>
+ s6-rc-set-commit [ -v <em>verbosity</em> ] [ -r <em>repo</em> ] [ -D <em>defaultbundle</em> ] [ -h <em>fdhuser</em> ] [ -K ] [ -f ] <em>set</em>
+</pre>
+
+<ul>
+ <li> s6-rc-set-commit checks that no changes have occurred for set <em>set</em> of the
+<a href="repodefs.html#repository">repository</a> <em>repo</em> since the last commit, if any. </li>
+ <li> It examines all the services in <em>set</em> that are not masked and makes a temporary source
+directory with them. It includes all the bundles defined in the <a href="repodefs.html#store">stores</a>, as long
+as none of the atomic services composing a bundle is masked. If any service in a bundle is masked,
+the bundle does not appear in the database. </li>
+ <li> It makes an additional bundle, <em>defaultbundle</em>, based on the
+services' <a href="repodefs.html#sub">subs</a>:
+ <ul>
+ <li> If a service is <em>masked</em>, it will not appear in the database at all,
+and neither will any bundle it's a part of. </li>
+ <li> If a service is <em>latent</em>, it will be included in the database, but
+not in <em>defaultbundle</em>. </li>
+ <li> If a service is <em>active</em> or <em>essential</em>, it will be included
+in the database and in <em>defaultbundle</em>. </li>
+ </ul> </li>
+ <li> It compiles the resulting temporary source directory, by calling
+<a href="s6-rc-compile.html">s6-rc-compile</a>, and stores the compiled database
+in the repository. </li>
+</ul>
+
+<h2> Options </h2>
+
+<dl>
+ <dt> -v <em>verbosity</em>, --verbosity=<em>verbosity</em> </dt>
+ <dd> Be more or less verbose. The default is <strong>1</strong>, which means
+that error messages and warnings will be written to stderr. 0 means that only
+error messages will be written, and 2 or more adds informational messages. </dd>
+
+ <dt> -r <em>repo</em>, --repository=<em>repo</em> </dt>
+ <dd> Use the repository in <em>repo</em>, which must exist. Default is
+<strong>/var/lib/s6-rc/repository</strong>.
+ </dd>
+
+ <dt> -D <em>defaultbundle</em>, --default-bundle=<em>defaultbundle</em> </dt>
+ <dd> This option specifies the name of the bundle that will contain all the active and
+essential services. It should be the name that is used to bring up the machine at
+boot time when invoking the <a href="s6-rc.html">s6-rc change</a> command. The
+default is <strong>default</strong>. </dd>
+
+ <dt> -h <em>fdhuser</em>, --fdholder-user=<em>fdhuser</em> </dt>
+ <dd> Specifies <em>fdhuser</em> as the user the fd-holder daemon will run
+at if the service database is installed and booted on. The default is
+<strong>root</strong>, which is fine, but paranoid users may want to
+specify a non-root account. </dd>
+
+ <dt> -K, --keep-old </dt>
+ <dd> If this option is given: if there is a previous compiled database for set <em>set</em>,
+it will be kept around. On sucess, s6-rc-set-commit will print a line to stdout
+that is the path to the old compiled database. You can copy it with
+<tt>cp -PR</tt>, move it with <tt>mv</tt> or delete it with <tt>rm -r</tt>.
+By default, old compiled databases are not kept &mdash; they're deleted when
+a new commit operation succeeds. </dd>
+
+ <dt> -f, --force </dt>
+ <dd> Force a new compilation even if a compiled database already exists for
+the set and it has not changed since the last commit. By default, when a
+compiled version of <em>set</em> exists and is more recent than the last
+change to the source version, s6-rc-set-commit notices it and does nothing. </dd>
+</dl>
+
+<h2> Exit codes </h2>
+
+<dl>
+ <dt> 0 </dt> <dd> Success. </dd>
+ <dt> 1 </dt> <dd> The set failed to compile. </dd>
+ <dt> 3 </dt> <dd> <em>set</em> was not found in the repository. </dt>
+ <dt> 100 </dt> <dd> Incorrect usage. </dd>
+ <dt> 102 </dt> <dd> Inconsistent repository. </dd>
+ <dt> 111 </dt> <dd> System call failed. </dd>
+</dl>
+
+<h2> Notes </h2>
+
+<ul>
+ <li> s6-rc-set-commit is essentially a wrapper around <a href="s6-rc-compile.html">s6-rc-compile</a>,
+that translates a user-oriented view of services ("which services do I want available, and
+which do I want started at boot time?"), implemented via subs, into the source format for
+<a href="s6-rc-compile.html">s6-rc-compile</a>, then builds the corresponding service
+database. </li>
+ <li> s6-rc-set-commit is the ultimate verification step for consistency. When it passes,
+the compiled set is ready to be <a href="s6-rc-set-install.html">installed</a>. </li>
+</ul>
+
+</body>
+</html>
diff --git a/doc/s6-rc-set-install.html b/doc/s6-rc-set-install.html
new file mode 100644
index 0000000..02b01f8
--- /dev/null
+++ b/doc/s6-rc-set-install.html
@@ -0,0 +1,106 @@
+<html>
+ <head>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta http-equiv="Content-Language" content="en" />
+ <title>s6-rc: the s6-rc-set-install program</title>
+ <meta name="Description" content="s6-rc: the s6-rc-set-install program" />
+ <meta name="Keywords" content="s6-rc s6-rc-set-install repo set installation update s6-rc-update boot" />
+ <!-- <link rel="stylesheet" type="text/css" href="//skarnet.org/default.css" /> -->
+ </head>
+<body>
+
+<p>
+<a href="index.html">s6-rc</a><br />
+<a href="//skarnet.org/software/">Software</a><br />
+<a href="//skarnet.org/">skarnet.org</a>
+</p>
+
+<h1> The s6-rc-set-install program </h1>
+
+<p>
+ s6-rc-set-install installs a <a href="s6-rc-set-commit.html">committed</a>
+<a href="repodefs.html#set">set</a> of services, i.e. a compiled database, as
+the <em>live database</em> of the currently running system.
+</p>
+
+<p>
+ It is basically a wrapper around <a href="s6-rc-update.html">s6-rc-update</a>.
+</p>
+
+<h2> Interface </h2>
+
+<pre>
+ s6-rc-set-install [ -v <em>verbosity</em> ] [ -r <em>repo</em> ] [ -l <em>livedir</em> ] [ -f <em>convfile</em> ] [ -b ] [ -K ] <em>set</em> <em>bootdbdir</em>
+</pre>
+
+<ul>
+ <li> s6-rc-set-install checks that the <a href="repodefs.html#set">set</a> of services <em>set</em>
+has been <a href="repodefs.html#commit">committed</a> and that no changes have occurred since. </li>
+ <li> It takes the corresponding service database and copies it to <em>bootdbdir</em>. </li>
+ <li> It calls <a href="s6-rc-update.html">s6-rc-update</a> on that copy of the compiled service
+database, which makes it the new <em>live</em> database. Some services may be stopped, and
+other started, in the process. </li>
+</ul>
+
+<h2> Options </h2>
+
+<dl>
+ <dt> -v <em>verbosity</em>, --verbosity=<em>verbosity</em> </dt>
+ <dd> Be more or less verbose. The default is <strong>1</strong>, which means
+that error messages and warnings will be written to stderr. 0 means that only
+error messages will be written, and 2 or more adds informational messages. </dd>
+
+ <dt> -r <em>repo</em>, --repository=<em>repo</em> </dt>
+ <dd> Use the repository in <em>repo</em>, which must exist. Default is
+<strong>/var/lib/s6-rc/repository</strong>. </dd>
+
+ <dt> -l <em>livedir</em>, --livedir=<em>livedir</em> </dt>
+ <dd> Assume the <em>live directory</em> of the machine, as created by
+<a href="s6-rc-init.html">s6-rc-init</a>, is <em>livedir</em>. The default
+is <strong><tt>/run/s6-rc</tt></strong>, but may have been changed at s6-rc
+build time with the <tt>--livedir</tt> configure argument. </dd>
+
+ <dt> -f <em>convfile</em>, --conversion-file=<em>convfile</em> </dt>
+ <dd> Specifies a conversion file to give to
+<a href="s6-rc-update.html">s6-rc-update</a>. The default is not having
+a conversion file, which should be correct in most cases. </dd>
+
+ <dt> -b, --block </dt>
+ <dd> Pass the <tt>-b</tt> option to <a href="s6-rc-update.html">s6-rc-update</a>,
+which makes it block rather than fail when the live database is currently being
+used by another program - typically when an <a href="s6-rc.html">s6-rc change</a>
+transition is under way. </dd>
+
+ <dt> -K, --keep-old </dt>
+ <dd> If this option is given, the old live database, after it has been
+replaced, is kapt around, and s6-rc-set-install prints a line to stdout that
+is the path to that old database. It can e.g. be used by automation to keep
+the possibility of rollbacks.
+By default, s6-rc-set-install will delete the old live database after
+successfully updating to the new one. </dd>
+</dl>
+
+<h2> Exit codes </h2>
+
+<dl>
+ <dt> 0 </dt> <dd> Success. </dd>
+ <dt> 3 </dt> <dd> <em>set</em> was not found in the repository. </dt>
+ <dt> 7 </dt> <dd> <em>set</em> was not up-to-date. </dt>
+ <dt> 100 </dt> <dd> Incorrect usage. </dd>
+ <dt> 102 </dt> <dd> Inconsistent repository. </dd>
+ <dt> 111 </dt> <dd> System call failed. </dd>
+ <dt> Other codes </dt> <dd> s6-rc-set-install can also exit with
+exit codes from <a href="s6-rc-update.html">s6-rc-update</a>. </dd>
+</dl>
+
+<h2> Notes </h2>
+
+<ul>
+ <li> s6-rc-set-install is a simple wrapper around <a href="s6-rc-update.html">s6-rc-update</a>
+that ties the <em>repo</em> commands and the way they manage service sets with the
+basic operation of the s6-rc engine. </li>
+</ul>
+
+</body>
+</html>