How to make a Ruby script into a daemon process

Use Daemons.


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:


Leave a Reply

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