# How to kill / abort rails on windows

**URL:** <https://www.ruby-forum.com/t/how-to-kill-abort-rails-on-windows/167904>\
**Category:** Rails\
**Created:** [May 13, 2009, 9:45pm UTC](https://www.ruby-forum.com/t/how-to-kill-abort-rails-on-windows/167904 "2009-05-13T21:45:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guusz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/258eb7/32.png) [@guusz](https://www.ruby-forum.com/u/guusz)\
**Post date:** [May 13, 2009, 9:45pm UTC](https://www.ruby-forum.com/t/how-to-kill-abort-rails-on-windows/167904/1 "2009-05-13T21:45:52Z")

</div>

Hi,

I have a number of rails servers running on windows as a single  
service (written in C#) and would like to terminate all processes when  
the service is stopped.

The windows C# way is to use Process.abort(), but it does not seem to  
kill all processes.

Another way is to have a controller method perform a Kernel::exit(1)  
or an abort(). These terminate the thread, but do not kill the server,  
at least not mongrel or webrick.

Maybe the answer is obvious, but I am not really a windows person.

Any ideas?

Thanks,  
Guus.
