[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Logrotate or ???



On Thu, Apr 10, 2003 at 02:09:22PM -0500, Cage wrote:
> I've been looking into configuring my logrotate config to try to keep my 
> /var/log directory clean. Thing is that my machine isn't on 24/7. From 
> what I understand, logrotate is default setup to clean logs at 4 a.m. 

You can just edit the /etc/crontab file, and set the exact times the
daily, weekly, and monthly scripts should be run; have them in the hours
your machine supposed to be running. logrotate's main script resides in
/etc/cron.daily, so it is driven by what is in /etc/crontab.

Oki



Reply to: