system/s6-linux-init: Add an example for SCAN_DIR usage

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Muhammad Mahendra Subrata 2023-01-30 17:59:29 +07:00 committed by Willy Sudiarto Raharjo
parent 7915740c12
commit ffa13faaaa
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 9 additions and 1 deletions

View File

@ -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