Forum: Ruby on Rails How to kill / abort rails on windows

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
guusz (Guest)
on 2009-05-13 23:45
(Received via mailing list)
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.
This topic is locked and can not be replied to.