Forum: Ruby Creating Detached Processes

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
264cfbbdaf426d32f66f7352eab4292e?d=identicon&s=25 s.ross (sent by Nabble.com) (Guest)
on 2006-04-10 08:04
(Received via mailing list)
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
F0223b1193ecc3a935ce41a1edd72e42?d=identicon&s=25 zdennis (Guest)
on 2006-04-10 09:52
(Received via mailing list)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

s.ross (sent by Nabble.com) wrote:
>
> ssh somebody@someplace.com '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-----
This topic is locked and can not be replied to.