issues with purge via varnishadm ran by crontab
thebog at gmail.com
Sun Nov 14 14:03:27 CET 2010
if you do not see it in the list. Then there is a big possibility that
the script never makes it into varnishadm. So I think it's safe to say
that the problem is in the script somehow, and not varnish.
Not that I am gonna debug your script, but take things into account
that cron is often run by /bin/sh which may have different env
variables than your normal shell (And therefore maybe a different
Type /bin/sh and work from there.
On Sun, Nov 14, 2010 at 7:37 AM, Vincent <cooltechemail at gmail.com> wrote:
> Hi All,
> I am using 2.1.3 and I am having issue with purge via the varnishadm
> command. Basically if I put the following command in crontab, the system
> will run the command as defined in crontab but it seems that varnish will
> ignore the command:
> varnishadm -T 127.0.0.1:8000 purge req.http.host == "www.example.com"
> However, if I manually type the above command in the command line, there is
> no problem. I've checked that www.example.com is not in purge.list when the
> command is ran using crontab but it will be included in purge.list when I
> manually type the command.
> Is this a bug?
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
More information about the varnish-misc