66
www.obarun.org
66-dbctl
This command is used to control an already supervised services in live defined in tree.
Interface
66-dbctl [ -h help ] [ -v verbosity ] [ -l live ] [ -t tree ] [ -T timeout ] [ -u up ] [ -d down ] service(s)
This tool expects to find an already supervised service in live defined in the given tree and an already running scandir.
This tool only deal with 'bundle', 'longrun', 'oneshot' service—see 66-svctl for 'classic' services.
Multiple services can be handled by seperating their names with a space. 66-dbctl gathers the service(s) passed as argument in a list called selection.
Options
- -h : prints this help.
-
-v verbosity : increases/decreases
the verbosity of the command. 1(Default): Only print
error messages. 2: Also print warning messages.
3: Also print debugging messages.
-
-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 filesystem - likely a RAM filesystem—see 66-scandir.
-
-t tree : handles the selection from
the given tree. This option is mandatory
except if a tree was marked as 'current'—see 66-tree.
-
-T timeout : specifies a general timeout (in milliseconds)
after which 66-dbctl will exit 111 with an error message if the selection still hasn't reached the desired state for each service.
By default, the timeout is 0, which means that 66-dbctl will block indefinitely.
-
-u : sends a up signal to the service.
-
-d : sends a down signal to the service.
Note
This tool is a safe wrapper built around s6-rc. It only handles 66 ecosystem files before sending the selection to
s6-rc program.