Logrotate issue
I have got a problem with logrotate where it rotates the files but doesn't update the right one.
For example messages becomes messages.1 but it's still adding lines to messages.1 not to messages.
Does not only happen for messages but also for secure.
This is the content of the syslog file under /etc/logrotate.d
/var/log/messages /var/log/secure /var/log/spooler /var/log/boot.log /var/log/cron {
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
Any suggestions.
|