unix - Process.daemon vs. running a Ruby script with nohup + & -


I have a Ruby 1.9 script that I want to run as a long-running background process.

It seems that there is an option for me to call Process.daemon inside the script to lip, or I can run the script only in the background using shell appresand I can keep it and I'm running after prefixing the command with nohup and logging out of the server.

How is it better?

process. Dull looks in a more clean and simple way, especially if it is something that you can turn into a complete daemon introduced during boot.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -