logrotate

lolaferrari
lolaferrari used Ask the Experts™
on
logrotate is only rotating my files if i run logrotate /etc/logrotate.conf from the command line. however it is setup in the /etc/cron.daily dir and crond is running. does anyone have any pointers?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011
Commented:
logrotate in cron.daily is run by "root".
Please try to run
logrotate /etc/logrotate.conf
  as root to see if it rotate other log files defined in /etc/logrotate.conf?
have you restarted syslog service after you made the changes?
Kent WSr. Network / Systems Admin

Commented:
Verify in your cron log that it is indeed firing off.
If it is, then you most likely have an error in your logrotate.conf, or some bad permissions somewhere, maybe on the log files themselves, that is causing logrotate to fail.

To double-check that crond is running, do you have other cron tasks that are completing as expected?

Author

Commented:
It's working fine if I don't execute it in cron so it must be a cron issue. Thanks guys

Author

Commented:
Many thanks for answering so many of my questions. It's really helping me enormously!

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