On Tuesday 30 Sep 2003 9:28 am, Fajar Priyanto wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tuesday 30 September 2003 03:02 pm, Derek Jennings wrote:
> > One of those jobs tidies up your log files.
> > Do not be surprised if your computer goes crazy with disc accesses after
> > you install anacron. You have a *lot* of log files to tidy :-)
> > derek
> >
> > (I think thats the third time I have posted that advice this week)
>
> Thanks a lot Derek,
> If I'm not mistaken, anacron is the scheduler, not the actual cleaner of
> log files. I understand that logrotate is the one who does that?
> I've looked into /etc/logrotate.d/ and /etc/logrotate.conf but I can't
> understand how to configure it. Pls help.
> Thanks.

Correct. anacron will schedule jobs to run that were not run by cron.
Logrotate is the actual package to compress the log files. Logrotate is 
installed by default in Mandrake, and a cron job is automatically placed in 
/etc/cron.daily/logrotate
That file points to the logrotate configuration /etc/logrotate.conf, but you 
should not need to touch it. 
By default logrotate will compress all your log files and keep four weeks of 
compressed backups. Whenever you install a new RPM which requires loggging, 
then a file is dropped into /etc/logrotate.d to add that log file to 
logrotates job entirely automatically.

derek

-- 
----------------------------------
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org


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

Reply via email to