From 5eefb9aae5e9e88b200ff7fcc445120c5ee2998b Mon Sep 17 00:00:00 2001
From: Laurent Bercot
Date: Tue, 8 Sep 2026 16:12:24 +0000
Subject: 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.
---
doc/s6.html | 27 +++++++++++----------------
1 file changed, 11 insertions(+), 16 deletions(-)
(limited to 'doc/s6.html')
diff --git a/doc/s6.html b/doc/s6.html
index 661bc65..9fb6038 100644
--- a/doc/s6.html
+++ b/doc/s6.html
@@ -63,17 +63,6 @@ command, and on the linked documentation page you can find the interpretation
of its various exit codes.
- Environment variables
-
-
- - s6 reads the
S6_CONF environment variable
-containing the absolute path to the
-configuration file for the s6 command.
- - If this variable is unset, the default is /etc/s6.conf,
-possibly overridden by the --conffile build-time configure option to
-s6-frontend.
-
-
Global options
@@ -129,12 +118,18 @@ if auto. Not all commands and subcommands will use this
setting. Also, for pretty-printing of columns, it is recommended to
have built s6-frontend with util-linux support.
+
-S, --system
+ Use the /etc/s6.conf system configuration file.
+This is the default.
+The location of the file can be overridden by the admin at install time via the
+--conffile configure option, or by the user at run time via the
+S6_CONF environment variable.
+
-u, --user
- Override the variables defined in the configuration file with values
-built from XDG environment variables. This option only works if the XDG
-environment variables are present in the environment. This option is
-useful to address user services. You can see what values are used by
-running s6 -u version export.
+ Use the /etc/s6-user.conf system configuration file.
+The location of the file can be overridden by the admin at install time via the
+--userconffile configure option, or by the user at run time via the
+S6_USER_CONF environment variable.
--
cgit v1.3.1