title: Process.daemon vs. running a Ruby script with nohup + &
body: <p>I have a Ruby 1.9 script that I want to run as a long-running background process. </p>
  
  <p>It looks like I have a choice between calling <code>Process.daemon</code> inside the script to daemonize it, or I can just run the script in the background using a shell's ampersand and keep it running after I log out of the server by prefixing the command with <code>nohup</code>. </p>
  
  <p>Which way is better?  </p>