Re: How do I cleanly shut down squid?

From: <gel@dont-contact.us>
Date: Tue, 22 Jul 1997 13:52:05 -0700 (PDT)

>>From squid-users-request@nlanr.net Tue Jul 22 15:24:46 1997
>Resent-Date: Tue, 22 Jul 1997 12:46:22 -0700 (PDT)
>Date: Tue, 22 Jul 1997 15:46:36 -0400
>From: Marc Delisle <DelislMa@CollegeSherbrooke.qc.ca>
>Organization: College de Sherbrooke
>To: Matthew Petach <mattp@Internex.NET>
>CC: squid-users@nlanr.net
>Subject: Re: How do I cleanly shut down squid?
>References: <199707221914.MAA22959@b5.eng.internex.net>
>Resent-Message-ID: <"6enka388kf1.0.H31.LsGrp"@oceana.nlanr.net>
>Resent-From: squid-users@nlanr.net
>X-Mailing-List: <squid-users@nlanr.net> archive/latest/431
>X-Loop: squid-users@nlanr.net
>Resent-Sender: squid-users-request@nlanr.net
>
>Matthew Petach wrote:
>>
>> Strange question...
>>
>> When I try to shut down squid by doing this:
>>
>> if [ -f /opt/INEXsquid/logs/squid.pid ] ; then
>> pid=`/bin/cat /opt/INEXsquid/logs/squid.pid`
>> echo "Stopping squid pid $pid..."
>> if [ "X$pid" != "X" ] ; then
>> kill $pid
>> fi
>> else
>> echo "Sorry. No calamari."
>> fi
>>
>> Then squid cleans up, and immediately re-spawns a new copy.
>>
>> How should I kill squid so it stays dead? The start section
>> of the init script looks like this:
>>
>> case $1 in
>> 'start')
>> if [ -f /opt/INEXsquid/bin/RunCache ]; then
>> echo "starting Squid proxy/cache..."
>> /opt/INEXsquid/bin/RunCache /opt/INEXsquid/etc/squid.conf &
>> fi
>> ;;
>>
>> Am I not supposed to be using the RunCache script? From the
>> looks of it, the RunCache script seems to be attempting to
>> always spawn new copies of squid, no matter what. This isn't
>> very friendly behaviour for something being called from init
>> scripts on a SYSV system. :-(
>>
>> Any pointers would be appreciated.
>>
>
>I suggest you first kill the RunCache process.
>
>--
>Marc Delisle
>Service Informatique
>Collège de Sherbrooke
>Québec. 819/564-6223
>
>
>
>
Received on Tue Jul 22 1997 - 14:07:37 MDT

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