Re: Kill fastcgi process

Jean-Christophe Roux <jcxxr-/[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Aron,

Thanks for your answer

>Kill -9 may be a bad idea ...
>Read this: http://speculation.org/garrick/kill-9.html
Thank you; I am going to take this into account

>> (2) Does it make a difference that the process is a static or a
dynamic one in order to make sure the older version of my app is
completely removed?
>Normally no ...
Once I have killed the running processes, what prevents the FastCgi Manager from spawning new processes which could be the older version of my program.  Isn't there a way to send a message straight to the  FastCgi Process Manager for Apache who would do the job (better than me most probably).

How do you guys handle that step of switching to a newer version of your app?






________________________________
From: Aron Szabo <aron-Iv/[email protected]>
To: Jean-Christophe Roux <jcxxr-/[email protected]>
Cc: fastcgi-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
Sent: Tuesday, July 28, 2009 7:04:40 AM
Subject: Re: [FASTCGI] Kill fastcgi process

Hi!

(1) :
Kill -9 may be a bad idea ...
Read this: http://speculation.org/garrick/kill-9.html

(2) :
Normally no ...

I hope it helped ;)

Aron

Jean-Christophe Roux wrote:
> Hello,
> 
> I am running fastcgi processes on a Centos 5 box with Apache 2.2.
> 
> I am still confused on how I should kill processes before I release a new version of my app.
> 
> Currently, I am doing something like:
> 
> while [ 1 ]
> do
>   pid=`ps -C "${app_name}" -o pid --no-headers`
>   if [[ -z ${pid} ]] ; then
>     echo "No more pid"
>     break
>   else
>     kill -9 ${pid}
>     echo "Pid ${pid} killed"
>   fi
> done
> 
> (1) Is that a satisfactory way to kill those processes?
> (2) Does it make a difference that the process is a static or a dynamic one in order to make sure the older version of my app is completely removed?
> 
> Thank you
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> FastCGI-developers mailing list
> FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
> http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
>

_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.