[squid-users] another copy of squid
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Squid > [squid-users] another copy of squid




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [squid-users] another copy of squid  
Ilya


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-01-04 12:35 PM

Hello!

How does squid determine whether one copy of squid already run
or not?

wbr,
Ilya





[ Post a follow-up to this message ]



    Re: [squid-users] another copy of squid  
Ilya


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-01-04 01:35 PM

On Sat, 1 May 2004 17:13:30 +0530
"Davinder Sachdeva" <dsachdeva@locuz.com> wrote:
>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 ?

wbr,
Ilya.





[ Post a follow-up to this message ]



    Re: [squid-users] another copy of squid  
Chris Wilcox


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-01-04 05:36 PM

>>type the following command as root on the machine 
>
>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






[ Post a follow-up to this message ]



    Re: [squid-users] another copy of squid  
Henrik Nordstrom


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-01-04 05:36 PM

On Sat, 1 May 2004, Ilya wrote:

> How does squid determine whether one copy of squid already run
> or not?

By the pid file and if there exists a running process with the same pid as
recorded in the pid file.

Regards
Henrik






[ Post a follow-up to this message ]



    Re: [squid-users] another copy of squid  
Henrik Nordstrom


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-01-04 05:36 PM

On Sat, 1 May 2004, Chris Wilcox wrote:

> It doesn't guess.  When squid starts it'll create a pid file called
> 'squid'(not quite sure where?)

Where specified by the pid_filename config directive.

Regards
Henrik






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:06 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register