How to make a Ruby script into a daemon process

Use Daemons.

1.Install

gem install daemons

2. Then, say you have myserver.rb, create a control script, myserver_control.rb, like this:

3. and use it from the console like this:

http://daemons.rubyforge.org/

 

Leave a Reply

Your email address will not be published. Required fields are marked *