Re: log file question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 24 Apr 2000 18:18:47 +0200

At 19:05 24/04/00 +0530, K.DEEPAK wrote:

>I think i have made myself clear. Basically, i do not want to delete
>the log files , but only to rename after it reaches a specific size
>limit.

Which is precisely the job of logrotate. No reason to build any advanced
rotate functions into each deamon when there is logrotate which can do
it for you.

When you use logrotate you disable Suqids build in log rotation by
setting logfile_rotate to 0, and instruct logrotate to signal Squid with
-k rotate when it has rotated the logs. In this mode Squid will only
reopen it's logs, not rotate them.

As you said ftp.redhat.com seems to be unavailable at this time. A list
of mirrors can be found from
http://www.redhat.com/swr/src/squid-2.3.STABLE2-2.src_dl.html

Note: The instructions I gave is a rebuild from source by using RPM. If
you are on a RedHat system then it is preferable to have software
installed by RPM rather than manually, and the RedHat RPMs include most
of the integration needed (init scripts to automatically start the
service on reboot, logrotate definition to maintain log files and so
on).

--
Henrik Nordstrom
Squid hacker
Received on Mon Apr 24 2000 - 10:22:19 MDT

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