# Mongrel death

**URL:** <https://www.ruby-forum.com/t/mongrel-death/154020>\
**Category:** Deployment\
**Created:** [November 24, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/mongrel-death/154020 "2008-11-24T17:46:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sshingler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@sshingler](https://www.ruby-forum.com/u/sshingler)\
**Post date:** [November 24, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/mongrel-death/154020/1 "2008-11-24T17:46:09Z")

</div>

Mongrel on Windows:

Our internal app keeps dying with a seg fault. Is there a way to catch  
this event with another app/Mongrel service, or something… to push a  
msg to the client browser?

We need some way to notify the user that the server died. If we run  
Mongrel as a service, I can set it to auto-restart, but the user doesn’t  
know to refresh his/her browser.

Anyone have some ideas?

And yes, fix the seg fault is preferred, I know.

---

<div class="post-metadata">

**Author:** ![sshingler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@sshingler](https://www.ruby-forum.com/u/sshingler)\
**Post date:** [December 10, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/mongrel-death/154020/2 "2008-12-10T15:42:37Z")

</div>

Steven Steven wrote:

> Mongrel on Windows:
> 
> Our internal app keeps dying with a seg fault. Is there a way to catch  
> this event with another app/Mongrel service, or something… to push a  
> msg to the client browser?
> 
> We need some way to notify the user that the server died. If we run  
> Mongrel as a service, I can set it to auto-restart, but the user doesn’t  
> know to refresh his/her browser.
> 
> Anyone have some ideas?
> 
> And yes, fix the seg fault is preferred, I know.

On our Video on Demand website made with Rails, we use Nginx as the http  
server. When it is properly configured, we have it display an html page  
to notify people that the site is being updated (i.e: mongrels are down  
momentarily), no need to add more software to detect the mongrels are  
down.

I can assist you for the config file if you use Nginx.

If you want the client to automatically refresh the browser after a few  
seconds, you can do that using javascript.

–  
Video on Demand training in French : [http://www.digiprof.fr](http://www.digiprof.fr)
