Hi all,
Wondering if anyone has an automated cache-flushing script which can
be run as a cron job?
I know the system calls to actually flush the cache, but my problem is
that squid often takes a while to actually shut itself down.
I want to flush the entire cache every day at midnight.
I want
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 oth
mån 2006-08-07 klockan 11:56 +0100 skrev Jim Christy:
> Wondering if anyone has an automated cache-flushing script which can
> be run as a cron job?
why?
It's maintained automatically. You should not need to flush the cache.
> I know the system calls to actually flush the cache, but my problem
forgot the reply all.
squid -k check actually yields nothing. does it need to be enabled in
the initial compile?
squid's definitely running.
Thanks
Jim
On 8/7/06, Jim Christy <[EMAIL PROTECTED]> wrote:
Hi Henrik,
I want to flush the cache daily to make sure i'm not getting stale
data from th
Think i see - i'm really looking for a return value of nothing - which
shows squid is running?
so when it stops i get:
$ squid -k check
squid: ERROR: No running copy
Cheers
Jim
On 8/7/06, Jim Christy <[EMAIL PROTECTED]> wrote:
forgot the reply all.
squid -k check actually yields nothing. do
mån 2006-08-07 klockan 12:37 +0100 skrev Jim Christy:
> forgot the reply all.
>
> squid -k check actually yields nothing. does it need to be enabled in
> the initial compile?
>
> squid's definitely running.
then -k check is silent and returns success, just to keep matters
simple.
When Squid is