Re: SQUID PID

From: James Young <jyoung@dont-contact.us>
Date: Tue, 23 Mar 1999 13:35:59 -0600

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
Received on Tue Mar 23 1999 - 12:29:25 MST

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