![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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? |
|
||||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|