koeboot, koehalt -- Utilities for booting and halting the KOE
koeboot [-f filename] [-x] [-q] [-h] [kssname ...]
koehalt [-f filename] [-x] [-q] [-h] [-w] [-z] [-a] [kssname ...]
The koeboot utility starts up a KOE, including the Worldroot, Knowbot Service Stations (KSS), and tools such as the Visualizer. The description of what gets started is contained in configuration files which can be customized for a specific site or user.
The koehalt utility shuts down a KOE, and like the koeboot utility, finds the list of components to shut down by looking at the configuration files.
The koeboot utility supports the following options. For each option, a short and a long form is supported. Long options start with two dashes.
The koehalt utility supports the same options as koeboot, as well as the following:
These utilities are driven by a set of configuration files, which can be customized on a per-site and per-user basis. By default, all configuration files reside in the configuration directory, normally $KOSROOT/config. The configuration files are, in the order in which they are loaded:
Configuration files that are loaded later in the order can override or augment values defined in earlier files.
In configuration files, lines beginning with a # character are comments, and the rest of the line is ignored. Note that # is a comment character if and only if it is the first non-whitespace character on the line.
Each configuration file is made up of sections, which are delimited by tags of the format: [SECTION] where the word inside the square brackets has some predefined meaning. Inside the sections, lines are of the format:
option: value
where continuations and such are in the style of RFC
822 headers. Section names are case sensitive, but option names
are case insensitive. Values are taken literally, and quotes
are not needed for multi-word values. However, if the value is
meant to be the empty string, then The values can contain format strings (of the Python variety)
which refer to other values in the same section, or values in a
special [DEFAULT] section, defined at the top of the
boot configuration file. For example:
would resolve the string %(dir)s to the
value of the dir option. All option expansions are
performed as late as possible, and only on demand. The
following substitutions are predefined:
There are currently four predefined sections, with several
optional sections also allowed.
This section defines the default values of all options, which
are inherited by all the other sections. The following options
are defined, along with their default values:
This section defines how to start the Worldroot server.
The default configuration file contains the appropriate
information.
This section defines how to start the Visualizer (if at all).
The default configuration contains the appropriate information
but disables the visualizer. It can be enabled by a
in the user specific configuration file.
This section specifies the list of KSS kernels to start or
shut down, by name. This section is arranged differently than
the other sections, since it is used to simply define the list
of KSSs to start or shut down. There are two ways this list is
defined:
For example, suppose the boot configuration file contains the
following section:
On a host named gather, koeboot would
start up three kernels, named gather, imagerepo
and searcher. On all other hosts, only one kernel would
be started, and it would have the host's name. The same rules
are used by koehalt, except that it only shuts down
kernels if it believes they are up and running.
Each KSS kernel can have its own section, specified by putting
the kernel name in square brackets. Within this section, you
can override any option, with values specific to that kernel.
You do not have to have a kernel specific setion for every KSS
named in the [KERNELS] section.
The list of KSSs to start or stop is determined based on the
configuration files and the command line options given to the
scripts.
If no KSS names are given on the command line, then only those
kernels found in the configuration files
are started or stopped. If any KSS names are given on the
command line, then only those kernels are started or stopped,
and the KSS names in the configuration files are ignored. If
the -x option is given then all kernels specified in the
configuration files are started or stopped except those
named on the command line.
something: %(dir)s/whatever
The [DEFAULT] Section
-n %(kosname)s -q
which is relevant for starting KSS kernels in quiet mode, with
the given kernel name. %(kosroot)s/kernel/kernel.py
which is the path to the KSS kernel program. kos/%(kosname)s/receiver
which is path to a KSS kernel's Receiver object.The [Worldroot] Section
The [Visualizer] Section
[Visualizer]
section containing
enable:1
The [KERNELS] Section
[KERNELS]
-: %(hostname)s
gather: searcher imagerepo
Kernel specific sections
KSS Lists