# Mongrel shutdown function

**URL:** <https://www.ruby-forum.com/t/mongrel-shutdown-function/88060>\
**Category:** Rails\
**Created:** [March 7, 2007, 9:00pm UTC](https://www.ruby-forum.com/t/mongrel-shutdown-function/88060 "2007-03-07T21:00:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SHiBuMi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/65b543/32.png) [@SHiBuMi](https://www.ruby-forum.com/u/SHiBuMi)\
**Post date:** [March 7, 2007, 9:00pm UTC](https://www.ruby-forum.com/t/mongrel-shutdown-function/88060/1 "2007-03-07T21:00:49Z")

</div>

Hello,

I have a rails application which is running on mongrel. When mongrel  
server is stopped (terminated by user or by application), I want to  
run an independent ruby script. Is there any way to do this?

My operating system is Windows XP

Thanks for the help  
Regards  
Serdar
