----- Original Message -----
From: Derek Jennings <[EMAIL PROTECTED]>
Date: Mon, 9 Dec 2002 10:29:53 +0000
To: [EMAIL PROTECTED]
Subject: Re: [newbie] question about log files


> > > > Subject: Re: [newbie] question about log files
> > > >
> > > > > On Mon, 2002-12-09 at 12:43, Angus Auld wrote:
> > > > > > Greetings, another newbie question. :-)
> > > > > > This is something I have been wondering about for awhile. Is there
> > > > > > a program on my Mdk system that looks after log files? To keep them
> > > > > > from getting too large? Or is there a ceiling on how big these
> > > > > > files can get? Seems like wasted space after a while.
> SNIP
> > >
> > > The program is called logrotate. If you leave your computer on overnight
> > > Mandrake has automatically set cron to do the rotate once a week at 4am.
> > > The config files are in /etc/logrotate.d/. For more info open your
> > > terminal and "man logrotate".
> > >
> > > Someone else my have already answered this but i have been horsing with
> > > my kmail threading and don't know whic list mails i have glanced at and
> > > deleted. --
> > > Michael
> >
> > **********************************************************************
> >
> > Thanks ppl for all the valuable info. All stuff I didn't
> > know............wasn't such a dumb question after all. ;-)
> >
> > I'll leave my comp on overnight and let logrotate do it's thing.
> >
> > All the best.
> >
> >
> > --Angus
> 
> You can always change the time logrotate runs.  Either use Webmin, or directly 
> edit /etc/crontab. Logrotate runs daily, so all you have to do is modify the 
> entry for cron.daily.
> 
> 56 10 * * * root nice -n 19 run-parts /etc/cron.daily
> 
> This entry means run at "10:56 am, every day, every week"
> 
> 
> derek
> 
***********************************************************************

Thanks for that explanation Derek! I learned a ton of things by asking a question that 
I felt was maybe a bit lame. I wanted to know, and now I'm very glad I asked.

I left my comp on last night, and I see that everything has been tidied up in 
/var/log. Super!
I may change the runtime of cron.daily like you suggest. Am I right to assume that the 
time is indicated in a 24hr manner? (8pm would be 00 20?)

I'm not in the habit of leaving my computer on continously, so I wonder if if it would 
be a good idea to change the runtime of cron.weekly and cron.monthly too?

Thanks again.

   
--Angus

"Let us not look back in anger or forward in fear, but around in awareness."--James 
Thurber

***********************************************  
*Reg. Linux User #278931*
***********************************************
*Power by Mandrake Linux 9.0*
***********************************************

-- 
_______________________________________________
Get your free email from http://mymail.operamail.com

Powered by Outblaze

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to