66
www.obarun.org
66-disable
This command disable one ore more services inside a given tree.
Interface
66-disable [ -h help ] [ -v verbosity ] [ -l live ] [ -t tree ] [ -S stop ] service(s)"
This tool expects to find an already enabled service inside the given tree. The targeted service(s) can also be stopped on the fly when disabling it with the -S option.
Generally speaking this command is strictly the reverse of the 66-enable tool.
Multiple services can be disabled by seperating their names with a space.
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 : disables the service from
the given tree. This option is mandatory
except if a tree was marked as 'current'—see 66-tree.
-
-S : stops the service on the fly directly after disabling it. If the state of the service is already down, this option
will have no effect.
Dependencies handling
In case of 'bundle', 'longrun' or 'oneshot' services, the dependencies chain will be automatically resolves.
It is unnecessary to manually define chained sets of dependencies. If FooA have a declared dependency FooB, FooB will be automatically added to the chain at FooA disabling process.
This is done recursively.