From ffa13faaaa3442b16397b8c2c2366421ae8aedc7 Mon Sep 17 00:00:00 2001 From: Muhammad Mahendra Subrata Date: Mon, 30 Jan 2023 17:59:29 +0700 Subject: system/s6-linux-init: Add an example for SCAN_DIR usage Signed-off-by: Willy Sudiarto Raharjo --- system/s6-linux-init/README | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'system') diff --git a/system/s6-linux-init/README b/system/s6-linux-init/README index 76e6c9f009e3f..cbb2b5fc260e7 100644 --- a/system/s6-linux-init/README +++ b/system/s6-linux-init/README @@ -41,7 +41,15 @@ TMPFS_DIR=/path/to/directory to the script like below: At some point in boot time, an instance of s6-svscan will become PID 1, using $TMPFS_DIR/service as its scan directory by default. This can be altered by passing SCAN_DIR=path/to/directory to the script, changing -the scan directory to $TMPFS_DIR/path/to/directory. +the scan directory to $TMPFS_DIR/path/to/directory. For example, if you +want to change the scan directory to /run/s6/rc, you can pass +SCAN_DIR=s6/rc to the script like below: + + SCAN_DIR=s6/rc ./s6-linux-init.SlackBuild + +Note that we don't use absolute path for SCAN_DIR here, since it is +relative to $TMPFS_DIR, which defaults to /run (as mentioned +previously). Upstream recommends building skarnet.org software with static libraries, as most of skarnet.org software are small enough that shared libraries -- cgit v1.2.3