This command initiates services from a given tree at a live directory.
66-init [ -h help ] [ -z ] [ -v verbosity ] [ -l live ] [ -t tree ] classic|database|both
This tool expects to find an already created scandir directory at live location. The scandir does not need to be necessarily running depending on the provided options. Administrators should invoke 66-init only once.
-h : prints this help.
-z : use color.
-v verbosity : increases/decreases the verbosity of the command.
-l live : changes the supervision directory of service to live. By default this will be /run/66
. The default can also be changed at compile time by passing the --livedir=live
option to ./configure
. An existing absolute path is expected and should be within a writable and executable filesystem - likely a RAM filesystem—see 66-scandir.
classic : only initiate all classic
services from tree at live location.
datatabe : only initiate all bundle
and atomic
services from tree at live location.
both : initiate all classic
services and all bundle
and atomic
services from tree at live location.
The tool will make an exact copy of all classic
service files and directories of the tree inside a scandir directory at live. By default /run/66/scandir/UID
is created if it does not exist yet, where UID is the uid of the current owner of the process. The scandir does not need to be necessarily running. This is useful at boot time to initiate an early service before starting the scandir. Once the scandir starts—see 66-scandir -u option, the already present services start automatically.
If the scandir is running, you should invoke a 66-scanctl reload command to inform it about the changes.
The tool will automatically invoke s6-rc-init -l live -c compiled -p prefix, where, by default, live translates to /run/66/tree/UID/tree
and compiled to /var/lib/66/66/system/tree/servicedirs/db/tree
or $HOME/.66/system/tree/servicedirs/db/tree
depending on the owner of the process and the prefix of the name of the tree. If it doesn’t exist yet live is created in the process. For these services the scandir must be running. This tool like any other 66 tool can be invoked with user permissions.