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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-23-2006, 12:46 AM
|
#1
|
Member
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282
Rep:
|
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.
|
|
|
04-23-2006, 06:35 AM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
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
}
|
|
|
04-23-2006, 10:49 AM
|
#3
|
Member
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296
Rep:
|
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.
|
|
|
05-07-2006, 06:12 PM
|
#4
|
Member
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 04:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|