diff --git a/doc/tree.md b/doc/tree.md index 4f68f8a868ef7dff32297dfee918fee74de6876d..36fde69b2b9bc1fd711ad23dbe2331b9d4d750f7 100644 --- a/doc/tree.md +++ b/doc/tree.md @@ -407,6 +407,30 @@ Displays contents of the `treefoo` resolve file. ``` 66 tree resolve treefoo ``` +### Init + +#### Interface + +This command initiate services of a tree to a scandir directory + +``` +66 tree init [ -h ] tree +``` + +The behavior of this subcommand will depends of the state of the [scandir](scandir.html). If the scandir is not running, this command will initiate earlier services of *tree*, in other case its initiate all *enabled* services within *tree*. + +This subcommand is primarily used internally by `66 boot` command to initiate earlier services of *tree*. Initiation of services is made automatically at each invocation of `66 start` or `66 tree start` command is services was not initiate previously. + +#### Options + +- **-h**: prints this help. + +#### Usage examples + +Initiates all *enabled* services of `treefoo` to a running scandir +``` +66 tree init treefoo +``` ### Start diff --git a/src/lib66/exec/ssexec_help.c b/src/lib66/exec/ssexec_help.c index bc816ec3489b5e3d2ea26f371642cf4e2a2223b1..09902c65b017adc1a1a115bc2a792b3867d00faf 100644 --- a/src/lib66/exec/ssexec_help.c +++ b/src/lib66/exec/ssexec_help.c @@ -422,7 +422,7 @@ char const *help_tree_status = char const *usage_tree_init = "66 tree init [ -h ] tree" ; char const *help_tree_init = -"\ninitiate all services present in tree to a scandir already running\n" +"\ninitiate all enabled services associated to a tree to a scandir directory\n" "\n" "options:\n" " -h: print this help\n"