Nginx – restart spawn-fcgi

nginxspawn-fcgi

how can i restart spawn-fcgi on nginx server?

Best Answer

Run it with option -P to store the PID in some temp file. For example:

/usr/local/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -P /var/run/fcgi.pid 

Then you can kill it by this pid:

kill -9 `cat /var/run/fcgi.pid`