logrotate

lolaferrari
lolaferrari used Ask the Experts™
on
does logrotate get called from the kernel?

i have a pretty standard config and the syslog in logrotate.d is the default but it doesn't seem to work.  logrotate /etc/logrotate.d not giving any errors either - any pointers?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011
Commented:
1. Is the crond running on your system?
ps -lef |grep crond

If not, do
/etc/init.d/crond start

2. Do you have /etc/cron.daily/logrotate with content
=============
#!/bin/sh

/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0
============
Make sure it is executable.
chmod 755 /etc/cron.daily/logrotate

3. Check /etc/logrotate.conf
The command is
/usr/sbin/logrotate  /etc/logrotate.conf

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial