[FASTCGI] Kill fastcgi process
Aron Szabo
aron at aron.ws
Tue Jul 28 07:04:40 EDT 2009
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 at mailman.fastcgi.com
> http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
>
More information about the FastCGI-developers
mailing list