Re: [squid-users] automate flushing of cache

From: James Wakefield <james.wakefield@dont-contact.us>
Date: Mon, 07 Aug 2006 21:13:54 +1000

Jim Christy wrote:
>
> But often it runs so quick that squid doesn't get chance to shutdown
> before the script tries to restart it.
>
> Any suggestions?
>
> Thanks
> Jim

You could use ps (grepped appropriately) in a loop, with a sleep at the
end of each iteration to check if squid's shut down yet. If other
people have shell on the box you might want to make sure you get the
full path in the ps, too, to stop /home/luser/squid from making your
script wait forever.
Received on Mon Aug 07 2006 - 05:13:56 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:01 MDT