66

obarun.org

66-init

This command initiates services from a given tree at a live directory.

Interface

    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.

Exit codes

Options

Arguments

Initialization process

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.

Bundle, atomic services

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.