YASSP
Daily cronjob
The PARCdaily package implement a set of actions we want to
execute once a day. It include some logs rotation, backup and
checking of a list of sensible files, and various other checks.
PARCdaily can be installed as a standalone pkg, but will use
/etc/yassp.conf if it is present.. It's avalaible
from: parcdaily.Z and is
architecture independent as being writen in bourne shell.
To install it, uncompress it and do pkgadd -d parcdaily
PARCdaily
PARCdaily first comments out all the lines of
/usr/lib/newsyslog, as it will implement a its own logs
managements. Then, it adds a daily cron job : /opt/local/sbin/daily.
/opt/local/etc/daily will, once a day, execute the following
action:
- Rotate Log files: All the log files defined
in the shell variables named LOGS will be rotated, if
they have a size greater than zero. The old log file will be
post-fixed with the time (date +%Y.%m.%d-%H.%M.%S),
compressed (gzip) and then moved to
/var/oldlogs. Syslogd is restarted if any files
were rotated.
- Backup systems files: all the files defined
in shell variables named BACKUPF will be compared with
a backup copy stored under RCS in /var/backups.
If this backup copy is different or if it does not exist, the
file will be copied over /var/backups and
RCS-checked-in.
- Checking: This is minimum now: a df -k and
optional pkgchk -n.
Home
$Id: daily.html,v 1.10 2000/11/13 05:24:01 jean Exp
jean $; Jean
Chouanard, Xerox
PARC