Whatever happened to 'squid -k rotate'?
D
John Heaton wrote:
> > 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
-- Note to evil sorcerers and mad scientists: don't ever, ever summon powerful demons or rip holes in the fabric of space and time. It's never a good idea. ICQ UIN: 3225440Received on Mon Nov 03 1997 - 05:09:27 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:26 MST