Logrotate
From FVue
Multiple files can be specified on separate lines:
/var/log/httpd/access.log
/var/log/httpd/error.log
/var/log/httpd/mysite/*.log
{
rotate 5
mail nobody@example.org
size 100k
sharedscripts
postrotate
/usr/bin/killall -HUP httpd
endscript
}You can test your file without performing the actual rotations by doing this:
logrotate -d -f /etc/logrotate.conf