Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running a Ruby Program as a Windows Service?

Is it possible to run a ruby application as a Windows Service? I see that there is a related question which discusses running a Java Application as a Windows Service, how can you do this with a Ruby application?

like image 565
Kyle Burton Avatar asked Oct 02 '08 17:10

Kyle Burton


People also ask

How do I run a Ruby program on a server?

Open a command line window and navigate to your Ruby scripts directory using the cd command. Once there, you can list files, using the dir command on Windows or the ls command on Linux or OS X. Your Ruby files will all have the . rb file extension.


1 Answers

Check out the following library: Win32Utils. You can create a simple service that you can start/stop/restart at your leisure. I'm currently using it to manage a Mongrel instance for a Windows hosted Rails app and it works flawlessly.

like image 175
mwilliams Avatar answered Sep 30 '22 12:09

mwilliams