Example of how to run ruby code as a windows service
For the serivce and daemon functionality
gem install win32-service win32-daemonFor the example sinatra app
gem install rack sinatraThis will install the windows service. Open up register_ruby_service_example.rb to change the service name
ruby register_ruby_service_example.rb