Re: Logrotate or ???
On Fri, 11 Apr 2003 10:12, Oki DZ wrote:
> 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.
You also have the option of @reboot id you want the job done on boot up.
See man 5 crontab for more information.
Bob
Reply to: