66
www.obarun.org

66-tree

This command handles a directory containing a set of services.

Interface

	66-tree [ -h help ] [ -v verbosity ] [ -n new ] [ -a allow user,user,... ] [ -d deny user,user,... ] [ -c current ] [ -E enable ] [ -D disable ] [ -R remove ] [ -C clone ] tree"
	

66-tree will handle a set of any kind of services into tree. tree will be handled for the current user of the process. Each tree are completely independent from each other. If you want to know which tree are currently available on the system use 66-info tool.

Options

How it works

At the creation time, by default the tree will be created at /usr/lib/66/system/tree for root and $HOME/.66/system/tree for an user. The base name of the directory, it mean /usr/lib/66/,$HOME/.66/, can also be changed at compile-time by passing the --with-system-dir=DIR option for root and --with-user-dir=DIR for an user to ./configure. When you e.g enable a service as root, the resulting file service parser process will be written at /usr/lib/66/system/tree/servicedirs/svc for a service with "classic" type and at /usr/lib/66/system/tree/servicedirs/db/source for a service as bundle,longrun,oneshot service type. Never handles manually the directory and sub-directory of a tree. You will goes on trouble doing this.

In fact, when you use 66 tools like 66-enable,66-disable,66-start,66-dbctl,... the tool will go to the directory of the tree to find information about the service itself. For example when you ask to start all services of a tree with 66-all tool,the directory /usr/lib/66/system/tree/servicedirs/svc will be opened. For each service found into it 66-all will start it. The process is a little different for a service as type bundle,longrun,oneshot. Instead of openning the directory /usr/lib/66/system/tree/servicedirs/db/source, the corresponding compiled database found at /usr/lib/66/system/tree/servicedirs/db/tree will be used. This compiled database is the resulting of an s6-rc-compile invocation at enable process time of the directory /usr/lib/66/system/tree/servicedirs/db/source.