Creating Detached Processes

I need to create a side-by-side process that will stay alive after the Ruby
process that created it dies. I also need to get the PID so I can kill it
later. Background: This command will be executed on a server over ssh, so
the Ruby process will die when the ssh command ends.

Consider as an example:

ssh somebody@someplace.com 'managewebprocess --start'

or

ssh somebody@someplace.com 'managewebprocess --restart'

Is there any library support for this?

Thanks

···

--
View this message in context: http://www.nabble.com/Creating-Detached-Processes-t1423175.html#a3836478
Sent from the ruby-talk forum at Nabble.com.

s.ross (sent by Nabble.com) wrote:

I need to create a side-by-side process that will stay alive after the Ruby
process that created it dies. I also need to get the PID so I can kill it
later. Background: This command will be executed on a server over ssh, so
the Ruby process will die when the ssh command ends.

Consider as an example:

ssh somebody@someplace.com 'managewebprocess --start'

or

ssh somebody@someplace.com 'managewebprocess --restart'

Is there any library support for this?

Daemons... http://rubyforge.org/projects/daemons/

Zach