/etc/syslog.conf
defines the system logging directories, e.g.:
mail.debug /var/adm/syslog.dated/mail.log syslog.debug /var/adm/syslog.dated/syslog.logThe
.dated
suffix causes a daily log directory
dd-mmm-hh:mm
to be created. Otherwise the log files
will grow undefinitely, unless they are "rotated" as indicated below.
/etc/syslog.conf
is modified,
one has to tell the syslogd
daemon to reconfigure:
kill -HUP `cat /var/run/syslog.pid` # send a "hangup" signal
/var/adm/syslog.dated
is associated with a cleanup cron
job.
/opt/bin/logrotate.sh
crontab -e # or: vi /usr/spool/cron/crontabs/root # OSF/1 2.x, # then insert: 0 3 * * * /opt/bin/logrotate.sh /var/adm/syslog/mail.log 2 3 * * * /opt/bin/logrotate.sh /var/adm/syslog/syslog.log ....to schedule this at 3:00 AM, 3:02 AM, etc.