The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files. Logrotate allows for the automatic rotation compression, removal and mailing of log files. Logrotate can be set to handle a log file daily, weekly, monthly or when the log file gets to a certain size. Normally, logrotate runs as a daily cron job.
13 lines
252 B
Text
13 lines
252 B
Text
/var/log/messages
|
|
/var/log/authlog
|
|
/var/cron/log
|
|
/var/log/xferlog
|
|
/var/log/lpd-errs
|
|
/var/log/maillog
|
|
/var/spool/uucp/ERRORS
|
|
{
|
|
sharedscripts
|
|
postrotate
|
|
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
|
|
endscript
|
|
}
|