Next: Optional RC Variables, Previous: Synopsis and Options, Up: Top
The main config file is named rc
and is the first file read by rottlog.
see Period related configuration options.
Each line can be defined with a variable and default value,
variable=value
. Some variables do not need a value,
variable
. Variables are split in two categories: mandatory and
optional. rc
can be overridden by "period-related" config files.
Comments may appear anywhere in the config file as long as the first
non-whitespace character on the line is a #
.
Example:
# This is a valid comment logpart 100b # This is an INVALID comment
Following are the mandatory variables needed to make rottlog to work:
compress=<options> extension=<ext> fromuser=<sender address> mail=<mailer prg> (1) maxdepth=<depth> nomail (1) packdir=<archive-dir> packer=<absolute-filename> pager=<pager-program> touser=<receiver address> uncompress=<options> unpacker=<absolute-filename> (1) Can't be used together
Where:
compress=<options>
IMPORTANT:
The packer program sends output to STDOUT, (ie for gzip/bzip2 use -c
flag).
extension=<ext>
fromuser=<sender address>
mail=<mailer prg>
- for sendmail use:mail="sendmail -t"
- for qmail use:mail="qmail-inject -h"
maxdepth=<depth>
nomail
packdir=<archive-dir>
packer=<absolute-filename>
pager=<pager-program>
--showlog
parameter. It's
used in a pipe, so it must be a program able to read from STDIN.
The --showlog
option will not be available if this variable is
not defined, and each time rottlog is called, a warning message will
be printed.
touser=<receiver address>
uncompress=<options>
IMPORTANT:
Unpacker program must output data to STDOUT. (For gunzip/bunzip2 use -c.)
unpacker=<complete-filename>