Sanjay
Read the FAQ - there is a section which says that sending a SIGUSR1 to
the squid process, as in "kill -USR1 squid-pid", will do this.Of course
you have to use something to get squids PID, like the following
pid=`ps -e | grep -w squid | sed -e 's/^ *//' -e 's/ .*//'`
You can put this in a suitable CRON job to get it to work every day,
week, month, etc.
The config parameter logfile_rotate sets the number of logs to rotate
through for access.log, store.log, cache.log. After that number, old
logs are deleted, so at most you'll have logfile_rotate logs.
access.log -> access.log.0 -> access.log.1 .......access.log.n
Regards
Jason Armistead
armistej@oeca.otis.com
>----------
>From: sanjayk@ssdi.sony.com.sg[SMTP:sanjayk@ssdi.sony.com.sg]
>Sent: Monday, 3 November 1997 13:35
>To: squid-users@nlanr.net
>Subject: LOG Files
>
>
>Hi,
>
>How do I recycle the LOG Files (access.log and store.log) generated by
>Squid. Is there any parameter or
>option to specify that squid to initialise the log files after X many days
>as the size of the Log files is
>increasing enormously? Or is there any option to move the log files to some
>other directories
>automatically after the certain specified days?
>
>Regards,
>Sanjay
>
>
>
Received on Sun Nov 02 1997 - 19:35:20 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:25 MST