> 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/ .*//'`

far simpler to make use of the following in squid.conf

# TAG: pid_filename
# A pathname to write the process-id to. There is no default.
#pid_filename
pid_filename /opt/Squid/squid.pid