Hi Anders, Thank you for your reply. I tried to start /bin/sh and type the varnishadm purge command. It worked fine and I could see the purge in purge.list. I also checked /var/log/cron and I am sure the varnishadm purge command was executed by cron, but the purge does not appear in the purge.list. Any ideas?
Vincent On Sun, Nov 14, 2010 at 5:03 AM, thebog <[email protected]> wrote: > Hi, > > 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 > PATH). > > Type /bin/sh and work from there. > > YS > Anders Berg > > > On Sun, Nov 14, 2010 at 7:37 AM, Vincent <[email protected]> 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? > > Thanks, > > Vincent > > _______________________________________________ > > varnish-misc mailing list > > [email protected] > > http://lists.varnish-cache.org/mailman/listinfo/varnish-misc > > >
_______________________________________________ varnish-misc mailing list [email protected] http://lists.varnish-cache.org/mailman/listinfo/varnish-misc
