Jump to content

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Cool, post back if you have any questions.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...