Re: [squid-users] automate flushing of cache

From: Jim Christy <jim.christy@dont-contact.us>
Date: Mon, 7 Aug 2006 12:56:14 +0100

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 <jim.christy@gmail.com> wrote:
> 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 <jim.christy@gmail.com> wrote:
> > Hi Henrik,
> >
> > I want to flush the cache daily to make sure i'm not getting stale
> > data from the site i'm caching. I understand squid tries to do this
> > automatically. But i've been instructed to make sure it does
> > definitely do a full clear-out just before the site's content is
> > refreshed. (We're working with the site and will know the time they
> > refresh).
> >
> > > When shutting down Squid you need to monitor the pid to determine when
> > > Squid has shut finally down. Can be done by simply running "squid -k
> > > check" and checking the return code..
> >
> > Thanks for this - should help me with my cron. And Thanks to James.
> > I'm already checking the ps aux | grep squid - but of course it always
> > returns true because the grep is a result itself. The running squid
> > process doesn't have it's full path so i can't grep the grep results
> > for that either.
> >
> > But Henrik's squid -k check should do the trick in a while loop.
> >
> > Thanks both.
> >
> > Jim
> >
> >
> >
> > On 8/7/06, Henrik Nordstrom <henrik@henriknordstrom.net> wrote:
> > > 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 is
> > > > that squid often takes a while to actually shut itself down.
> > >
> > > When shutting down Squid you need to monitor the pid to determine when
> > > Squid has shut finally down. Can be done by simply running "squid -k
> > > check" and checking the return code..
> > >
> > > Regards
> > > Henrik
> > >
> > >
> > > -----BEGIN PGP SIGNATURE-----
> > > Version: GnuPG v1.4.5 (GNU/Linux)
> > >
> > > iD8DBQBE1yGqB5pTNio2V7IRAuASAJ49TZ1ZNZXClu44UGqZfey5c8c82ACeNT/d
> > > M849bGXUcftZIhRuTUMXsAE=
> > > =pnEA
> > > -----END PGP SIGNATURE-----
> > >
> > >
> > >
> >
>
Received on Mon Aug 07 2006 - 05:56:17 MDT

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