issues with purge via varnishadm ran by crontab

Vincent Wells cooltechemail at
Sun Nov 14 16:14:56 CET 2010

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


On Sun, Nov 14, 2010 at 5:03 AM, thebog <thebog at> 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 <cooltechemail at> 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 purge == ""
> > However, if I manually type the above command in the command line, there
> is
> > no problem. I've checked that 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
> > varnish-misc at
> >
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list