diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-12-03 05:32:58 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-12-03 05:32:58 +0000 |
commit | 611773a0946f9b1d1b834953236a96cbdfea2211 (patch) | |
tree | 59d7ee729dc4f160dffae116ebfd052362af494e /doc | |
parent | fc7aa7da7f0e8638707b66b7ea897afb8e1fa355 (diff) | |
download | s6-rc-611773a0946f9b1d1b834953236a96cbdfea2211.tar.xz |
Prepare for 0.5.3.0, add contents.d and dependencies.d support
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/index.html | 2 | ||||
-rw-r--r-- | doc/s6-rc-compile.html | 31 | ||||
-rw-r--r-- | doc/upgrade.html | 10 |
3 files changed, 33 insertions, 10 deletions
diff --git a/doc/index.html b/doc/index.html index 06fb919..0bb9aeb 100644 --- a/doc/index.html +++ b/doc/index.html @@ -67,7 +67,7 @@ requirement if you link against the shared version of the skalibs library. </li> <ul> <li> The current released version of s6-rc is -<a href="s6-rc-0.5.2.3.tar.gz">0.5.2.3</a>. </li> +<a href="s6-rc-0.5.3.0.tar.gz">0.5.3.0</a>. </li> <li> Alternatively, you can checkout a copy of the <a href="//git.skarnet.org/cgi-bin/cgit.cgi/s6-rc/">s6-rc git repository</a>: diff --git a/doc/s6-rc-compile.html b/doc/s6-rc-compile.html index c00ced8..acaf3c6 100644 --- a/doc/s6-rc-compile.html +++ b/doc/s6-rc-compile.html @@ -115,15 +115,23 @@ contents, i.e. all the services it represents will be marked as essential. </li> <h3> For bundles </h3> <ul> - <li> A regular file named <tt>contents</tt>. This file must be a list + <li> A directory named <tt>contents.d</tt>. This directory must contain +files, no matter their type, no matter their contents, named after services. +(Typically, empty regular files are used.) +All the services named in this directory will be represented by the bundle +named <em>service</em>. </li> + <li> If <tt>contents.d</tt> does not exist, the bundle contents can be read +from a regular file named <tt>contents</tt>. This file must be a list of service names, one per line. Whitespace at the beginning of a line is ignored, but trailing whitespace is not. Lines starting with a <tt>#</tt> character are ignored. The file defines the services that will be -represented by the bundle named <em>service</em>. </li> +represented by the bundle named <em>service</em>. Note that this format is +deprecated. </li> </ul> <p> - It is possible to use bundle names in a <tt>contents</tt> file. + It is possible to use bundle names in a <tt>contents.d</tt> directory or a +<tt>contents</tt> file. However, if s6-rc-compile detects a cycle in bundle definitions, it will complain and exit 1. </p> @@ -143,22 +151,27 @@ must contain an integer, which is the maximum number of milliseconds stop; if stopping the service takes longer than this value, s6-rc will declare the transition a failure. If the file does not exist, or contains 0, no timeout is defined and s6-rc will wait indefinitely for the service to stop. </li> - <li> An optional regular file named <tt>dependencies</tt>. This file must be a list + <li> An optional directory named <tt>dependencies.d</tt>. This directory must contain +files, no matter their type, no matter their contents, named after services. +(Typically, empty regular files are used.) All the services named in this directory +will be <em>direct dependencies</em> of <em>service</em>, i.e. the services that must +be up in order for <em>service</em> to work properly. </li> + <li> If <tt>dependencies.d</tt> does not exist: an optional regular file named +<tt>dependencies</tt>. This file must be a list of service names, one per line. Whitespace at the beginning of a line is ignored, but trailing whitespace is not. Lines starting with a <tt>#</tt> character are ignored. The file defines the <em>direct dependencies</em> of -<em>service</em>, i.e. the services that must be up in order for -<em>service</em> to work properly. </li> +<em>service</em>. Note that this format is deprecated. </li> </ul> <p> It is unnecessary to manually define complete sets of dependencies in the -<tt>dependencies</tt> file, because +<tt>dependencies.d</tt> directory or the <tt>dependencies</tt> file, because <a href="s6-rc.html">s6-rc</a> will properly handle dependency chains. If <em>A</em> depends on <em>B</em>, no matter the underlying implementation of <em>B</em>, and the current implementation of <em>B</em> depends on <em>C</em>, then you should just put <em>B</em> in -<tt><em>A</em>/dependencies</tt>; when starting the set, +<tt><em>A</em>/dependencies.d</tt>; when starting the set, <a href="s6-rc.html">s6-rc</a> will start <em>C</em> first, then <em>B</em>, then <em>A</em>. If the underlying implementation of <em>B</em> changes and does not depend on <em>C</em>, then you will just have to @@ -168,7 +181,7 @@ will still be correct. <p> Of course, if <em>A</em> depends on <em>C</em> anyway, you should add -both <em>B</em> and <em>C</em> to <tt><em>A</em>/dependencies</tt>. +both <em>B</em> and <em>C</em> to <tt><em>A</em>/dependencies.d</tt>. </p> <p> diff --git a/doc/upgrade.html b/doc/upgrade.html index 5c75358..1697860 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -30,6 +30,16 @@ minor and bugfix version changes. <h1> What has changed in s6-rc </h1> +<h2> in 0.5.3.0 </h2> + +<ul> + <li> <a href="s6-rc-compile.html">s6-rc-compile</a> now reads +service dependency information from the <tt>dependencies.d</tt> +directory and bundle information from the <tt>contents.d</tt> +directory, instead of the <tt>dependencies</tt> and <tt>contents</tt> +flat files. The old format is still supported, but deprecated. </li> +</ul> + <h2> in 0.5.2.3 </h2> <ul> |