Solution from Ali MasoudianPour and brad :
Download service_wrapper-0.1.0-win32.zipfrom https://github.com/luislavena/service_wrapper/downloads and extract service_wrapper.exefrom bin/. I pulled it in C:\service_wrapper.
Then configure the configuration file. I used the welcome example and modified it for my application, and then put it in a directory C:\service_wrapper.
[service]
executable = C:\Ruby192\bin\ruby.exe
arguments = C:\railsapp\script\rails s -e production
directory = C:\railsapp
logfile = C:\railsapp\log\service_wrapper.log
Now just create a service with
sc create railsapp binPath= "C:\service_wrapper\service_wrapper.exe C:\service_wrapper\service_wrapper.conf" start= auto
( binPath= start=. )
net start railsapp
!