Creating Detached Processes


#1

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 removed_email_address@domain.invalid ‘managewebprocess --start’

or

ssh removed_email_address@domain.invalid ‘managewebprocess --restart’

Is there any library support for this?

Thanks


#2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

ssh removed_email_address@domain.invalid ‘managewebprocess --restart’

Is there any library support for this?

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

Zach
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEOg9oMyx0fW1d8G0RAnULAJ4gcpncPG+8om47Gk/FfcY0MgVs+ACeLdzn
NQCKupr8wS1E/LBQ3rBn81Q=
=RqUg
-----END PGP SIGNATURE-----