From c771aabafeaea4ba903dd8f06ad6fc1e95504946 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 7 Jan 2021 23:38:06 +0000 Subject: Doc clarification, QoL fix for s6-usertree-maker --- doc/s6-usertree-maker.html | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/s6-usertree-maker.html b/doc/s6-usertree-maker.html index 4756006..847f04a 100644 --- a/doc/s6-usertree-maker.html +++ b/doc/s6-usertree-maker.html @@ -39,7 +39,7 @@ for the s6-rc service manager. [ -d userscandir ] \ [ -p path ] \ [ -E envdir [ -e var -e var ... ] ] \ - [ -r service/logger/pipeline ] \ + [ -r service/logger[/pipeline] ] \ [ -l loguser ] \ [ -t stamptype ] \ [ -n nfiles ] \ @@ -208,7 +208,7 @@ then s6-svscan will be run on /home/ska/service.

-

Example

+

Examples

      s6-usertree-maker -d '/run/user/${UID}/service' -p '${HOME}/bin:/usr/bin:/bin' -E /etc/user-env -e XDG_CONFIG_HOME -l catchlog ska /var/log/usertree/ska usertree-ska
@@ -225,6 +225,24 @@ as user catchlog, and storing its data in the /var/log/usertree/ska
 directory.
 

+

+ Note that simple quotes are used here to prevent the shell from +interpreting ${UID} and ${HOME}. +

+ +
+     s6-usertree-maker -d '/run/user/${UID}/service' -p '${HOME}/bin:/usr/bin:/bin' -E /etc/user-env -e XDG_CONFIG_HOME -l catchlog -r usertree-ska/usertree-ska-log/usertree-ska-pipeline ska /var/log/usertree/ska usertree
+
+ +

+ Same as above, except it does not create a service directory — instead, it +creates a usertree directory containing two subdirectories: usertree-ska, the +s6-rc source definition directory +for the service, and usertree-ska-log, the source definition directory +for its logger, and an implicit usertree-ska-pipeline bundle +containing both the service and the logger. +

+

Notes