Re: [squid-users] another copy of squid

From: Chris Wilcox <not_rich_yet@dont-contact.us>
Date: Sat, 01 May 2004 16:36:41 +0100

>>type the following command as root on the machine
>>
>>ps -A|grep squid
>>
>>This command will show u all the instances of squid running.
>>
>>If u wish to kill the process, u will need to issue the command
>>
>>kill -9 <pid no>
>>
>>If the connections are active, it will take some time before squid process
>>can actually get killed.
>
>I did not mean just that.
>
>I want to know how does squid determine whether it (squid) has been already
>launched? If you will try to launch squid while another copy is running,
>you will see: "squid is running". How does squid guess :)?
>

It doesn't guess. When squid starts it'll create a pid file called
'squid'(not quite sure where?) and when it stops it will delete this pid
file. When you start Squid again it will check for the existence of this
pid file and if found Squid knows it is already running.

hth

Regards,

Chris

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger
Received on Sat May 01 2004 - 09:47:46 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Jun 01 2004 - 12:00:01 MDT