Re: [squid-users] another copy of squid

This is a discussion on Re: [squid-users] another copy of squid within the Squid Users forums, part of the Web Server and Related Forums category; >>type the following command as root on the machine >> >>ps -A|grep squid >&...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-01-2004
Chris Wilcox
 
Posts: n/a
Default Re: [squid-users] another copy of squid

>>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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:03 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0