[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: squid



Miquel van Smoorenburg wrote:
> 
> Hey, that means you're still using an old /etc/init.d/squid, since the
> new one prints totally different messages.

See for yourself...

giant:~# dpkg -l squid
Desired=Unknown/Install/Remove/Purge
|
Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name            Version        Description
+++-===============-==============-============================================
ii  squid           1.1.17-1       Internet Object Cache (WWW proxy
cache)
giant:~# 

> See if there's a /etc/init.d/squid.dpkg-dist file and copy that over
> /etc/init.d/squid to see if it helps.

I'm afraid there isn't a /etc/init.d/squid.dpkg-dist. 8(

> If it doesn't, do the following:
> 
> 1. copy /etc/squid.conf somewhere safe
> 2. Rename /var/spool/squid to something else
> 3. dpkg --purge squid
> 4. dpkg -i squid_1.1.17-1.deb
> 5. /etc/init.d/squid stop
> 6. Copy your old squid.conf back and put back /var/spool/squid
> 7. /etc/init.d/squid start
> 
> That should give you a fresh installation

Done. (Done precisely as you specified above)

Reboot.


Fri Nov 28 10:48:20 EST 1997: Running: squid -D -s -f /etc/squid.conf >>
/var/log/squid/squid.out 2>&1
                                   /usr/lib/squid/RunCache: line 59:  
289 IOT trap/Abort          squid -D -s $conf >>$L 2>&1
Fri Nov 28 10:48:31 EST 1997: Running: squid -D -s -f /etc/squid.conf >>
/var/log/squid/squid.out 2>&1
                      /usr/lib/squid/RunCache: line 59:   310 IOT
trap/Abort
      squid -D -s $conf >>$L 2>&1
Fri Nov 28 10:48:42 EST 1997: Running: squid -D -s -f /etc/squid.conf >>
/var/log/squid/squid.out 2>&1
                      /usr/lib/squid/RunCache: line 59:   331 IOT
trap/Abort
      squid -D -s $conf >>$L 2>&1
Fri Nov 28 10:48:53 EST 1997: Running: squid -D -s -f /etc/squid.conf >>
/var/log/squid/squid.out 2>&1
                      /usr/lib/squid/RunCache: line 59:   352 IOT
trap/Abort
      squid -D -s $conf >>$L 2>&1
Fri Nov 28 10:49:04 EST 1997: Running: squid -D -s -f /etc/squid.conf >>
/var/log/squid/squid.out 2>&1
                      /usr/lib/squid/RunCache: line 59:   373 IOT
trap/Abort
      squid -D -s $conf >>$L 2>&1
Fri Nov 28 10:49:04 EST 1997: RunCache: EXITING DUE TO REPEATED FREQUENT
FAILURES


Sorry.

I've included the /usr/lib/squid/RunCache program currently installed
below if that helps.

Thanks,

Behan

-- 
Behan Webster     mailto:behanw@verisim.com
+1-613-224-7547   http://www.verisim.com/


#!/bin/sh
#
#  $Id: RunCache.in,v 1.3.2.4 1996/05/24 06:40:39 wessels Exp $

prefix=/usr/lib/squid
exec_prefix=${prefix}
[ "$logdir" = "" ] && logdir=$prefix
PIDFILE=/var/run/runcache.pid
PATH=${exec_prefix}:/bin:/sbin:/usr/sbin:/usr/bin
export PATH

#
#   Just to be sure, check if squid is not already running.
#
if [ -f /var/run/squid.pid ]
then
    spid=`cat /var/run/squid.pid`
    kill -CONT $spid 2>/dev/null
    if [ $? = 0 ]
    then
        #echo "RunCache: squid is already running." >&2
        exit 0
    fi
fi

rm -f $PIDFILE
echo $$ > $PIDFILE

L=$logdir/squid.out

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

failcount=0
while : ; do
    echo "`date`: Running: squid -D -s $conf >> $L 2>&1" >>$L
    if [ $failcount -gt 0 ]
    then
      echo "`date`: Running: squid -D -s $conf >> $L 2>&1"
    fi
    start=`date '+%d%H%M%S'`
    squid -D -s $conf >> $L 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 "`date`: RunCache: EXITING DUE TO REPEATED FREQUENT
FAILURES" >&2
          echo "`date`: RunCache: EXITING DUE TO REPEATED FREQUENT
FAILURES" >$L
      exit 1
    fi
    sleep 10
done


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: