Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-23-2006, 01:46 AM   #1
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282

Rep: Reputation: 45
Unhappy Logrotate strange problem


I'm using logrotate on a cent os 4.3 box, but for some reason this box out off all the others has a logrotate problem. When my logs rotate each week, messages becomes messages.1 for example but the system continues to weite to messages.1 ans therefore message is empty.Its doing this for all the standard logs, log rotate makes, there no changes to it, its just as it out of the box.
Has any one come across this before?

Thanks in advance.

Old 04-23-2006, 07:35 AM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It sounds like the syslogd isn't being restarted when the logs are rotated. Is your logrotate setup so that there is an /etc/logrotate.d/syslog file? If so, does it restart syslogd? For example:
/var/log/cron /var/log/debug /var/log/maillog /var/log/messages /var/log/secure /var/log/spooler /var/log/syslog {
	/bin/kill -HUP `cat /var/run/ 2>/dev/null` 2>/dev/null || true
Old 04-23-2006, 11:49 AM   #3
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
I had this happen to me a while back (like last year). It went away after an upgrade. In my case, I think it was just a bug in logrotate.
Old 05-07-2006, 07:12 PM   #4
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282

Original Poster
Rep: Reputation: 45

Thanks for all the feedback, I removed and re-installed both logrotate and syslog, which seams to have cured the problem, Sunday night the logs have all rotated correctly.

Thanks again for the help.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with logrotate tflavell Linux - Newbie 6 07-04-2005 04:32 AM
strange, strange alsa problem: sound is grainy/pixellated? fenderman11111 Linux - Software 1 11-01-2004 06:16 PM
problem with logrotate pippet Linux - General 2 09-07-2004 02:23 AM
logrotate Rig24 Linux - Newbie 2 07-11-2003 06:08 AM
logrotate MrJoshua Linux - General 2 09-25-2002 10:55 AM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration