diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-09-08 16:12:24 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-09-08 16:12:24 +0000 |
| commit | 5eefb9aae5e9e88b200ff7fcc445120c5ee2998b (patch) | |
| tree | aa0bc83b0b5a86dd9a1aab781f36f2c85c8a6b5c /doc/s6-frontend.html | |
| parent | 125cf07d0b5139476b1f25fa4ba5a0782818eacc (diff) | |
| download | s6-frontend-5eefb9aae5e9e88b200ff7fcc445120c5ee2998b.tar.gz | |
Improve user service management
- Separate /etc/s6.conf from /etc/s6-user.conf
- Have --system|--user handled at the s6 level, not the s6-frontend level
- Also have --help rewritten at the s6 level because it's cleaner
- On --user, process the config file with sed to import XDG variables
- Do not use s6f_user_get_confdirs() anymore (can remove it if we
decide to stick with this design), --user now only changes the
conf file, and only command-line options such as --scandir can override
what is described in the conf file.
- Document the current behaviour.
Diffstat (limited to 'doc/s6-frontend.html')
| -rw-r--r-- | doc/s6-frontend.html | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/doc/s6-frontend.html b/doc/s6-frontend.html index 9d563f7..df98186 100644 --- a/doc/s6-frontend.html +++ b/doc/s6-frontend.html @@ -38,14 +38,26 @@ users should call <a href="s6.html">s6</a> instead. </p> <ul> - <li> <a href="s6.html">s6</a> gets the name of its configuration file from the -<tt>S6_CONF</tt> environment variable, or from the compiled-in default if -this variable is unset. Normally this default is <tt>/etc/s6.conf</tt>. </li> + <li> <a href="s6.html">s6</a> reads its configuration file at +<tt>/etc/s6.conf</tt> by default, overridable by the admin at build time +via the <tt>--conffile</tt> configure option, also overridable by the user +at run time via the <tt>S6_CONF</tt> environment variable. + <ul> + <li> If <a href="s6.html">s6</a> is run with the <tt>--user</tt> option, +it looks for <tt>/etc/s6-user.conf</tt> instead, overridable by the admin at +build time via the <tt>--userconffile</tt> configure option, also overridable +by the user at run time via the <tt>S6_USER_CONF</tt> environment variable. </li> + </ul> </li> <li> This configuration file (let's call it <em>conf</em>) contains <a href="s6.conf.html">variable definitions</a> that set the default for all the parts of the s6 system. </li> <li> <a href="s6.html">s6</a> rewrites itself into -<code>envfile -I <em>conf</em> -- s6-frontend <em>args...</em></code> </li> +<code>envfile -I <em>conf</em> -- s6-frontend <em>args...</em></code> + <ul> + <li> If the <tt>--user</tt> flag has been given, some text transformation +<a href="s6.conf.html#userservices">is first performed on the file</a> to substitute +the relevant XDG variables. </li> + </ul> </li> <li> The <a href="//skarnet.org/software/execline/envfile.html">envfile</a> program reads and parses <em>conf</em>, and then runs <a href="s6-frontend.html">s6-frontend</a> with the additional environment variables defined in <em>conf</em>. |
