# Dispatch.fcgi hanging after lighttpd shutdown

**URL:** <https://www.ruby-forum.com/t/dispatch-fcgi-hanging-after-lighttpd-shutdown/56037>\
**Category:** Rails\
**Created:** [March 27, 2006, 2:40pm UTC](https://www.ruby-forum.com/t/dispatch-fcgi-hanging-after-lighttpd-shutdown/56037 "2006-03-27T14:40:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhutter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mhutter](https://www.ruby-forum.com/u/mhutter)\
**Post date:** [March 27, 2006, 2:40pm UTC](https://www.ruby-forum.com/t/dispatch-fcgi-hanging-after-lighttpd-shutdown/56037/1 "2006-03-27T14:40:14Z")

</div>

Hi.

I’m using RoR 1.0 with FastCGI and lighttpd on a Debian 3.1 box. I  
have configured lighttpd to do adaptive spawning of the FastCGI  
processes.

However, after shutting down lighttpd the FastCGI processes remain  
running.

Did this problem occur to anyone of you? Is there a fix?

I’d be really grateful for every answer.

Regards,

Manuel H.

---

<div class="post-metadata">

**Author:** ![mhutter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mhutter](https://www.ruby-forum.com/u/mhutter)\
**Post date:** [March 27, 2006, 4:39pm UTC](https://www.ruby-forum.com/t/dispatch-fcgi-hanging-after-lighttpd-shutdown/56037/2 "2006-03-27T16:39:49Z")

</div>

Manuel H. wrote:

> I’d be really grateful for every answer.
> 
> Regards,
> 
> Manuel H.
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

I had the same issue on my ubuntu box (which I believe uses similar deb  
intalls). I had many hang-ups on the software I installed using  
apt-get. I havent found a solution. I was also using an older version  
of lighttpd.

–  
Berlin B.  
(ramaza3 on freenode)  
[http://www.newspiritcompany.com](http://www.newspiritcompany.com)  
also checkout alpha version of botverse:  
[http://www.newspiritcompany.com:8086/universe\_home](http://www.newspiritcompany.com:8086/universe_home)

---

<div class="post-metadata">

**Author:** ![mhutter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mhutter](https://www.ruby-forum.com/u/mhutter)\
**Post date:** [March 28, 2006, 1:15am UTC](https://www.ruby-forum.com/t/dispatch-fcgi-hanging-after-lighttpd-shutdown/56037/3 "2006-03-28T01:15:52Z")

</div>

Manuel H. wrote:

> Hi.
> 
> I’m using RoR 1.0 with FastCGI and lighttpd on a Debian 3.1 box. I  
> have configured lighttpd to do adaptive spawning of the FastCGI  
> processes.
> 
> However, after shutting down lighttpd the FastCGI processes remain  
> running.
> 
> Did this problem occur to anyone of you? Is there a fix?
> 
> I’d be really grateful for every answer.
> 
> Regards,
> 
> Manuel H.

Hi Manuel - I haven’t found out why they hang… but in the meantime, do  
a kill all on them like this:

ps aux | grep yourappname | egrep -v grep | awk ‘{print $2}’ | xargs  
kill -9

Replace the “yourappname” with whatever shows up in your dispatch.fcgi  
process when you do ps -ef

Dave
