From: Rein Henrichs Date: 2010-06-08T08:10:05+09:00 Subject: Re: keep eventmachine app running On 2010-06-07 14:47:49 -0700, Vect Vect said: > I want to find out how to get a event machine app running in the > background. > > In example scripts I have seen when the script are executed it runs in > the console but when the window/ssh session is closed the app stops. > > What needs to be done to have the scripts running as a process in the > background This is not strictly a Ruby question. It's a *nix question. The answers already provided are sufficient, however: A simple `ruby myscript.rb &` would also suffice, although process control would then be more difficult. The more complete and general way to handle such processes in the *nix world is the use of an init-like, like initd, runit or OS X's launchd. -- Rein Henrichs http://puppetlabs.com http://reinh.com