ianalis Posted March 2, 2006 Report Share Posted March 2, 2006 Hi! How can I make logrotate run hourly? Do I just need to move logrotate from cron.daily to cron.hourly? Is there an hourly keyword in the logrotate config file aside from the daily, weekly, monthly keywords? What I want to do is to limit the size of .xsession-errors since it becomes very large in a single day. Is there a better way? Thanks. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted March 2, 2006 Report Share Posted March 2, 2006 You could copy or move the job to /etc/cron.hourly, and then the job would run, that's the easiest and simplest way to do it. It will however, most likely affect all logfiles though. I noticed you have to look at /etc/logrotate.conf and also "man logrotate" to see what extra stuff you can do. Quote Link to comment Share on other sites More sharing options...
ianalis Posted March 2, 2006 Author Report Share Posted March 2, 2006 I think it might work. I'll try it and see if it works. Thanks! Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted March 2, 2006 Report Share Posted March 2, 2006 Cool, post back if you have any questions. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.