I have a TCP server I start with the following command;
nohup ruby ./server.rb &
You should wrap your process in a daemon handler so it gets restarted automatically.
You make a launcher script called something like launcher.rb that looks like this:
Then, as per the documentation:
ruby launcher.rb start