Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
logrotate hasn't been rotating messages? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tld
l33t
l33t


Joined: 09 Dec 2003
Posts: 835

PostPosted: Tue Nov 13, 2012 2:58 am    Post subject: logrotate hasn't been rotating messages? [SOLVED] Reply with quote

I just noticed that my logrotate hasn't been rotating some of the files configured in /etc/logrotate.d/syslog since some time in April. Here's the logrotate config:

Code:
cat /etc/logrotate.d/syslog

/var/log/auth.log /var/log/daemon.log /var/log/debug /var/log/emerge.log /var/log/faillog /var/log/kdm.log /var/log/kern.log /var/log/messages /var/log/syslog /var/log/user.log {
       sharedscripts
        rotate 5
        weekly
        postrotate
        /usr/bin/killall -HUP syslogd #
        endscript
}


I'm assuming this is the result of some update, though I don't know which one. I'm running sysklog. I just noticed that some others are not rotating. Of the files listed in that config only daemon.log, faillog, and syslog are rotating regularly. Any idea what's wrong there?

Tom
Back to top
View user's profile Send private message
tld
l33t
l33t


Joined: 09 Dec 2003
Posts: 835

PostPosted: Tue Nov 13, 2012 3:04 am    Post subject: Reply with quote

Ahhh...got it. That config entry had kdm.log which is now in another config causing a duplicate. This caused the files after it to be skipped.

Tom
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum