Background
To prevent the logfiles for DEIMOS processes from getting overly
large, the newlog procedure runs periodically to
"roll" the logfile. The newlog process will move
current logfile foo to foo.0, and the old
foo.0 will become foo.1, etc., until a
maximum number of old versions (typically 5) is exceeded; the
oldest file will then be removed. The newlog process
can optionally compress the old logfiles.
Invocation
The newlog script runs as root and is invoked as a
cron job. The crontab entry is as follows:
0 * * * * /local/ucolick/root/sbin/newlog -f /local/ucolick/root/etc/newlog.conf
Configuration
The newlog.conf file controls which files are
compresed, when they are compressed, how many versions are
retained, etc. The files lives at
/local/ucolick/root/etc/newlog.conf
To edit the file requires root access. The file header
documents the contents of the file.