MaverickApollo |
02-19-2004 12:23 AM |
Logrotate Help!
I have logrotate set up on my system, but the log files are not being rotated, and I am calling it from cron, and getting the email telling me that it has run, just it always says "Log does not need rotating" However some of the logs are 20+Mb in size, and over the date for rotation I have, which is weekly. Do I have to restart services after logrotate has run? I dont really understand what it needs in the config file, but here is what the file currently looks like
Code:
# rotate log files weekly
weekly
#daily
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
compress
# packages can drop log rotation information into this directory
include /etc/logrotate.d
notifempty
nomail
noolddir
# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 12
}
# system-specific logs may be also be configured here.
/var/log/clam-update.log {
monthly
create
rotate 12
}
/var/log/emerge.log {
monthly
create
rotate 12
}
/var/log/ntp.log {
monthly
create
rotate 12
}
/var/log/net-snmpd.log {
monthly
create
rotate 12
}
/var/log/xferlog {
monthly
create
rotate 12
}
/var/log/apache2/* {
monthly
create
rotate 12
}
/var/log/mysql/* {
monthly
create
rotate 12
}
/var/log/samba/* {
monthly
create
rotate 12
}
/var/log/log.nmbd {
monthly
create
rotate 12
}
/var/log/log.smbd {
monthly
create
rotate 12
}
Any Help appreciated!!!!!
|