Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
長時間実行されるバックグラウンド プロセスとして実行したい Ruby 1.9 スクリプトがあります。
スクリプト内で呼び出しProcess.daemonてデーモン化するか、シェルのアンパサンドを使用してバックグラウンドでスクリプトを実行し、コマンドの前にnohup.
Process.daemon
nohup
どちらの方法が良いですか?
Process.daemon特にこれがブート中に開始される本格的なデーモンに変わる方法である場合は特にそうです。