diff options
author | André Erdmann <dywi@mailerd.de> | 2013-09-23 15:26:51 +0200 |
---|---|---|
committer | André Erdmann <dywi@mailerd.de> | 2013-09-23 15:26:51 +0200 |
commit | 487b3f0a42ff6681cf23fb8d8abe121dc7996cc1 (patch) | |
tree | 48e82ec65592e16b52be7fded2835cc0578ab784 /doc | |
parent | remove rrd database (diff) | |
download | R_overlay-487b3f0a42ff6681cf23fb8d8abe121dc7996cc1.tar.gz R_overlay-487b3f0a42ff6681cf23fb8d8abe121dc7996cc1.tar.bz2 R_overlay-487b3f0a42ff6681cf23fb8d8abe121dc7996cc1.zip |
doc/rst: roverlay-status script
Diffstat (limited to 'doc')
-rw-r--r-- | doc/rst/usage.rst | 59 |
1 files changed, 50 insertions, 9 deletions
diff --git a/doc/rst/usage.rst b/doc/rst/usage.rst index 56c91bb..803be6d 100644 --- a/doc/rst/usage.rst +++ b/doc/rst/usage.rst @@ -6,6 +6,9 @@ .. _git repository: `roverlay git repo`_ +.. _mako templates: + http://www.makotemplates.org/ + .. _omegahat's PACKAGES file: http://www.omegahat.org/R/src/contrib/PACKAGES @@ -623,7 +626,8 @@ OVERLAY_DISTDIR_FLAT_. roverlay helpers ------------------ -An installation of roverlay includes some helper programs: +An installation of roverlay includes some helper programs, most of them +can also be found in ``<R overlay src directory>/bin/``: *roverlay-sh* a wrapper around /bin/sh that runs a shell or shell script in roverlay's @@ -666,6 +670,31 @@ An installation of roverlay includes some helper programs: * ``roverlay-setup hooks del <hook> <event|"all"> [<event|"all">...]`` removes a hook (referenced by name) from one or more (or all) *events* + +*roverlay-status* + A script that generates status reports based on `mako templates`_ + and roverlay's stats (`STATS_DB_FILE`_). Supported output formats include + html, cgi (html with cgi header) and plain text. + + Notable options accepted by *roverlay-status*: + + --output <file|"-">, -O <file|"-"> + output file/stream, defaults to stdout ("-") + + --template <file|name>, -t <file|name> + name of or path to the mako template file. A ``--mode`` specific + file extension is automatically appended when searching for the template + file. + + --mode <"cli"|"cgi"|"html"> + Sets the output format. Defaults to *cli* (plain text). + + --config <file>, -c <file> + Path to roverlay's main config file. + + See ``roverlay-status --help`` for a full listing. + + *run-roverlay.sh* A script that safely runs overlay creation and repoman afterwards. Uses filesystem locks to ensure that it is run at most once at a time. @@ -2654,17 +2683,29 @@ CACHEDIR .. _STATS_DB_FILE: STATS_DB - Path to the stats database file. This has to be a round-robin database - file (rrdtool). *roverlay* creates it if necessary. + Path to the stats database file. *roverlay* creates it if necessary. + + Defaults to <not set>, which disables database writing. + +.. _TEMPLATE_ROOT: + +TEMPLATE_ROOT + List of directories with templates for generating status reports. + + */usr/share/roverlay/mako_templates* is automatically added to this list + if roverlay has been installed. + + This option is **required** for *roverlay-status*, but doesn't need to be + set if roverlay has been installed. + + Defaults to <not set>. - Defaults to <not set>, which disable database writing. +.. _TEMPLATE_MODULE_DIR: -STATS_INTERVAL - Database update interval, which should be set to the expected timespan - between running overlay creation, in seconds. Only meaningful when - creating a new database file. +TEMPLATE_MODULE_DIR + Directory for caching mako templates. - Defaults to 7200 (2 hours). + Defaults to CACHEDIR_/mako_templates. .. _DISTFILES: |