I've created a gem called Titan that helps you creating and managing daemons in Ruby.
There's also an example that covers how to create a start/stop script in Ruby using Titan with Thor.
There's also an example that covers how to create a start/stop script in Ruby using Titan with Thor.