> 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
and then do summat like:
#!/bin/sh
PATH=/:/usr/bin
export PATH
kill -SIGUSR1 `cat /opt/Squid/squid.pid`
on a cron entry:
0 0 * * * /opt/Squid/bin/RotateCache
John
Received on Mon Nov 03 1997 - 04:51:27 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:26 MST