Craig,
If you want to use Cache-Stats for Squid 2.1, there are some modifications
you should do.
First, the one you asked about: 
Rotating logs with a signal is deprecated.  Instead, use "squid -k rotate":
Update the first section of squidstats.sh to fit your site.
I included SQUIDBIN=/usr/local/squid/bin
Then, change the section of squidstats.sh from:
>echo "kill -USR1 squid (pid $PID) (and sleeping 30 seconds) ..."
>kill -USR1 $PID
>sleep 30
to 
>echo "Rotating logs and pausing 30 seconds..."
>$SQUIDBIN/squid -k rotate
>sleep 30
Squid pauses 30 seconds before closing all connections; perhaps it should
sleep longer, but I haven't noticed any problems.

In access-summary.pl, update the site location to 
ftp://ftp.ecrc.de/pub/www/squid/contrib/cache-stats/
I haven't even seen the old site, but I'm sure this URL works.

You've probably already changed the first lines to #!/usr/bin/perl, or
whatever your perl path is.

-James Young

Reply via email to