LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



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

Rep: Reputation: 45
Unhappy Logrotate strange problem


Hi.

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.

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

Rep: Reputation: 162Reputation: 162
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:
Code:
/var/log/cron /var/log/debug /var/log/maillog /var/log/messages /var/log/secure /var/log/spooler /var/log/syslog {
    sharedscripts
    postrotate
	/bin/kill -HUP `cat /var/run/syslogd.pid 2>/dev/null` 2>/dev/null || true
    endscript
}
 
Old 04-23-2006, 11:49 AM   #3
ataraxia
Member
 
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
FragInHell
Member
 
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Ubuntu
Posts: 282

Original Poster
Rep: Reputation: 45
Hi,

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.

Keith.
 
  


Reply


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


All times are GMT -5. The time now is 03:07 AM.

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