Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

VanLUG Email Archive

Re: aha!

Ted Powell
Sat, 3 Oct 1998 13:29:10 -0700

On Sat, Oct 03, 1998 at 10:43:23AM -0700, Turbo Fredriksson wrote:
> Geoff Smith <
> wrote:

> [...]
> > found 400/480MB were in /log. My syslog, kern.log, and and debug are all
> > over 100MB each! Can I just delete these files, or what should I do???
>
> Sure... But you migth want to take the system down to single user (telinit s)
> first, then remove the files, and then go multiuser again (telinit 2).
>
> There might be programs/daemons that uses those files, and if the file is
> removed 'under there noses', they might not like it... :)

This is a good argument for letting 'logrotate' do the deed--it knows
how. (See my earlier message.)

Both alternative suggestions that I've seen on the list so far are only
Band-Aids(tm), in that your log files will once again grow out of control
if you don't keep on watching them and applying this one-time fix.

If you get logrotate working, you have a lasting solution.

-- 



http://psg.com/~ted/ (Ted Powell) If your hard drive crashes, perhaps you have a recent backup. If Earth crashes, what then? We need off-site backup: Luna, L5, Mars, wherever.