Re: [expert] Re: Clean up old logs

2003-11-15 Thread Eric Huff
RE anacron

> 
> Just install it. It will start as a service automatically. No
> config is necessary
> 
> derek

Whoops.  I guess it's not installed and shut off, my last email
doesn't make much sense...

eric


-- 
Mandrake HowTo's & More:  http://twiki.mdklinuxfaq.org

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


Re: [expert] Re: Clean up old logs

2003-11-15 Thread Eric Huff
> Thx. Do I have tp set anything special for anacron? Do I need to
> run it also as a demon?

If you like the gui:

run the mandsrake control center (mcc at the cli) 
system
drakxservices in upper right

then select anacron for boot, and might as well hit start too (to
run it now).


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


Re: [expert] Re: Clean up old logs

2003-11-15 Thread Derek Jennings
On Saturday 15 Nov 2003 7:30 pm, Adrian Golumbovici wrote:
> Oh shucks. Then maybe that was it. Since last electricity invoice almost
> let me broke I started to shut it down at night (that is for the last 6
> months).
>
> :)
>

Just install it. It will start as a service automatically. No config is 
necessary

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


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


Re: [expert] Re: Clean up old logs

2003-11-15 Thread Adrian Golumbovici
Oh shucks. Then maybe that was it. Since last electricity invoice almost let
me broke I started to shut it down at night (that is for the last 6 months).
:)

Thx. Do I have tp set anything special for anacron? Do I need to run it also
as a demon?

Best regards,
Adrin
- Original Message - 
From: "Derek Jennings" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 15, 2003 7:15 PM
Subject: Re: [expert] Re: Clean up old logs


> On Saturday 15 Nov 2003 5:32 pm, Björn Lundin wrote:
> > Adrian Golumbovici wrote:
> > > Anyway, how can I find out if logrotate is running?
> >
> > look in the crontab or int /etc/cron.daily 
> >
> > > ps aux | grep logrotate
> > >
> > > didn't show any results. And what does logrotate actually do (how does
it
> > > work)?
> >
> > It's not a deamon, its started by cron, run and then dies.
> >
> > > I see some logs archived (with .gz ending) in /var/log but don't
really
> > > need them (they just take up space).
> >
> > proberbly logrotate, that what it does, switching logfile for processes,
> > keeping the old ones compressed.
> >
> > > Anything older than 30 days should be
> > > irrelevant.
> >
> > man logrotate will help you to set that up, by tweaking
/etc/logrotate.conf
> >
> > /Björn
>
> And if you turn your computer off at night you will need to install the
> anacron RPM. The cron job to run logrotate is scheduled at 4am each
morning.
> If your computer is switched off at night it will never run. Anacron will
run
> missed cron jobs for you.
>
> derek
>
> -- 
> --
> www.jennings.homelinux.net
> http://twiki.mdklinuxfaq.org
>
>
>






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


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


Re: [expert] Re: Clean up old logs

2003-11-15 Thread Derek Jennings
On Saturday 15 Nov 2003 5:32 pm, Björn Lundin wrote:
> Adrian Golumbovici wrote:
> > Anyway, how can I find out if logrotate is running?
>
> look in the crontab or int /etc/cron.daily 
>
> > ps aux | grep logrotate
> >
> > didn't show any results. And what does logrotate actually do (how does it
> > work)?
>
> It's not a deamon, its started by cron, run and then dies.
>
> > I see some logs archived (with .gz ending) in /var/log but don't really
> > need them (they just take up space).
>
> proberbly logrotate, that what it does, switching logfile for processes,
> keeping the old ones compressed.
>
> > Anything older than 30 days should be
> > irrelevant.
>
> man logrotate will help you to set that up, by tweaking /etc/logrotate.conf
>
> /Björn

And if you turn your computer off at night you will need to install the 
anacron RPM. The cron job to run logrotate is scheduled at 4am each morning. 
If your computer is switched off at night it will never run. Anacron will run 
missed cron jobs for you.

derek

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


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


[expert] Re: Clean up old logs

2003-11-15 Thread Björn Lundin
Adrian Golumbovici wrote:

> Anyway, how can I find out if logrotate is running?

look in the crontab or int /etc/cron.daily 

> 
> ps aux | grep logrotate
> 
> didn't show any results. And what does logrotate actually do (how does it
> work)?

It's not a deamon, its started by cron, run and then dies.

> I see some logs archived (with .gz ending) in /var/log but don't really
> need them (they just take up space). 

proberbly logrotate, that what it does, switching logfile for processes,
keeping the old ones compressed.

> Anything older than 30 days should be 
> irrelevant.

man logrotate will help you to set that up, by tweaking /etc/logrotate.conf

/Björn


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


[expert] Re: Clean up old logs

2003-11-15 Thread Björn Lundin
Adrian Golumbovici wrote:

> Hi all,
> 
> My firewall has been up and running for the last 2 years now. While trying
> to cleanup the partitions I noticed a wholalotta log files from various
> stuff. On the other hand I am not sure which are from what... :/ I was
> wondering if there is something like a script or such to clean up /var/log
> of logs older than ... let's say 1 or 3 months. Is there such thing?
> 
> Best regards,
> Adrian

You are not running logrotate ?

/Björn


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