[FASTCGI] Kill fastcgi process

Tom Lynch lynchcr at live.com
Tue Jul 28 10:33:10 EDT 2009


PPPLEASE TAKE ME OFF THIS LIST  (yes I unsubscribed already, yes I wrote the moderator)  I had one question a long time ago as my script never got called, and no one answered, hence I'm not even using FASTCGI.



Date: Tue, 28 Jul 2009 03:59:18 -0700
From: jcxxr at yahoo.com
To: fastcgi-developers at mailman.fastcgi.com
Subject: [FASTCGI] Kill fastcgi process



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


_________________________________________________________________
Show them the way! Add maps and directions to your party invites. 
http://www.microsoft.com/windows/windowslive/products/events.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.pins.net/mailman/private.cgi/fastcgi-developers/attachments/20090728/ea6adce7/attachment.html>


More information about the FastCGI-developers mailing list