Red Hat Bugzilla – Bug 78225
[patch] First-time squid run crashes if no DNS
Last modified: 2014-08-31 19:24:24 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021018
Description of problem:
When I ran squid for the first time it kept crashing on startup. I was not
online at the time. I traced the problem to a bug in startup script, see below.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Disconnect from network
2. Reinstall squid, deleting cache
3. Start squid
Actual Results: Squid crashes when creating cache
--- squid~ Thu Jul 18 09:49:56 2002
+++ squid Wed Nov 20 12:30:20 2002
@@ -52,7 +52,7 @@
for adir in $CACHE_SWAP; do
if [ ! -d $adir/00 ]; then
echo -n "init_cache_dir $adir... "
- $SQUID -z -F 2>/dev/null
+ $SQUID -z -F -D 2>/dev/null
echo -n $"Starting $prog: "
will be added in 2.5.STABLE1-1, thx!