[Varnish] #1674: Debian: varnishncsa fails to start during boot
Varnish
varnish-bugs at varnish-cache.org
Mon Feb 9 17:00:03 CET 2015
#1674: Debian: varnishncsa fails to start during boot
-------------------+-----------------------
Reporter: idl0r | Type: defect
Status: new | Priority: normal
Milestone: | Component: packaging
Version: 4.0.2 | Severity: normal
Keywords: |
-------------------+-----------------------
Hi,
this is related to the repo.varnish-cache.org Debian packages.
varnishncsa fails to start during boot because it will be started too fast
(e.g. right after varnish itself) while varnish did not yet create that
_.vsm file so varnishncsa can't find it and doesn't start. A detect and
perhaps a very short delay might be good in this case. Example:
{{{
_count=0
while [ ! -f $SOCKET -a $_count -lt 5 ]; do
sleep 1
_count=$((_count + 1))
done
if [ ! -f $SOCKET ]; then
still not available ...
else
echo "Done!"
fi
}}}
5 Seconds should be fine. Even 10 might work but nothing higher should be
used.
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1674>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list