squid crashing on redhat 6.2

From: MT <mt@dont-contact.us>
Date: Thu, 19 Aug 1999 11:25:33 +1000

hello all

i used to have squid working without any trouble
on my old slackware box, by running a command
called runcache.

however, recently i upgraded to the latest redhat
and, squid starts up at start time, and crashes
after a while.

so i tired my old runcache script(copied below)
from my slackware box, and it started up lots of
little squids.

is there are simple fix?

cheers
MT

============================
#!/bin/sh
#
# $Id: RunCache.in,v 1.7 1996/10/31 07:28:58 wessels Exp $

prefix=/usr/sbin
exec_prefix=${prefix}
logdir=${prefix}
PATH=/bin:/usr/sbin:/usr/bin
export PATH

conf=""
if test "$1" ; then
        conf="-f $1"
        shift
fi

failcount=0
while : ; do
        echo "Running: squid -sY $conf >> $logdir/squid.out 2>&1"
        start=`date '+%d%H%M%S'`
        /usr/sbin/squid -sY $conf >> $logdir/squid.out 2>&1
        stop=`date '+%d%H%M%S'`
        t=`expr $stop - $start`
        if test 0 -le $t -a $t -lt 5 ; then
                failcount=`expr $failcount + 1`
        else
                failcount=0
        fi
        if test $failcount -gt 5 ; then
              echo "RunCache: EXITING DUE TO REPEATED, FREQUENT FAILURES"
>&2
                exit 1
        fi
        sleep 30
done
Received on Wed Aug 18 1999 - 19:09:00 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:48:03 MST