LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Logrotate issue (https://www.linuxquestions.org/questions/fedora-35/logrotate-issue-517254/)

stefaandk 01-07-2007 05:14 PM

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.

jschiwal 01-09-2007 03:17 AM

My logrotate.conf file contains:
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

The rest are in individual config files under /etc/logrotate.d/.


All times are GMT -5. The time now is 09:59 AM.