The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
awk - Rotating an array 90 degrees pondlife Shell Programming and Scripting 3 02-02-2009 07:54 AM
logrotate question manouche UNIX for Advanced & Expert Users 1 01-29-2009 02:38 AM
logrotate bug? jjinno UNIX for Advanced & Expert Users 0 06-09-2008 05:24 PM
rotating the syslogd and messages files hcclnoodles SUN Solaris 2 10-31-2006 11:14 AM
Rotating a String bubeshj Shell Programming and Scripting 1 07-31-2006 05:07 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-17-2009
manouche manouche is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 13
logrotate isn't rotating files any longer

I have been using logrotate for quite awhile now. Most logs are rotated daily, using /etc/cron.daily. I noticed that the logs in question have not been rotated since April 6, but daily up to that point.

I have logrotate in /etc/cron.daily. The basic command is:

/usr/sbin/logrotate /etc/logrotate.conf

In /etc/logrotate.conf, I specify to rotate daily and keep 31 log files.

In /etc/logrotate.d, I have the various configuration files for the services for which log files are generated (httpd, ezproxy, etc).

I restarted cron.d, which was already running.

I ran logrotate -d /etc/logrotate.conf and can see that it looks at the various configuration files and gives directions to rotate daily and keep 31.

Can anyone shed light on why I am not getting rotation of these logs?
  #2 (permalink)  
Old 06-17-2009
manouche manouche is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 13
Reply to my own message about logrotate and cron

I have discovered that cron.daily has not run since April 6. This explains why logrotate is not operating correctly. I have verified that crond is running, there are no scripts in cron.daily that have characters other than AZa-z0-9 and they are executable.

I assume that the system cron /etc/crontab runs automatically at the specified time, which is 4:20 am and it did until April 6.

I did restart crond and can test rotating some logs later, but I am wondering what may have happened to prevent cron.daily from running.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0