Re: Log rotation and logrotate

From: Bert Driehuis <bert_driehuis@dont-contact.us>
Date: Mon, 10 Jul 2000 10:37:52 +0200

Hi Marc,

> the FAQ says "the correct way to rotate logs is using squid -k
> rotate". My squid isn't that busy, so I don't need to rotate logs on a
> time based schedule. I'd like to use logrotate to have the logs
> rotated when they exceed a certain size.
>
> I'd like to know why using squid -k rotate is the "correct" way, and
> if there is any chance to tell a running squid that somebody else has
> taken care of rotating the logs and to tell that squid to start using
> new log files.

As the comments in squid.conf say, if you set the number of log files to
zero, the "squid -k rotate" command causes Squid to close and re-open
its log files. This is what you want.

Cheers,

                        -- Bert

-- 
Bert Driehuis, MIS -- bert_driehuis@nl.compuware.com -- +31-20-3116119
Dihydrogen Monoxide kills! Join the campaign at http://www.dhmo.org/
Received on Mon Jul 10 2000 - 02:40:34 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:54:23 MST