# Creating Detached Processes

**URL:** <https://www.ruby-forum.com/t/creating-detached-processes/57352>\
**Category:** Ruby\
**Created:** [April 10, 2006, 8:04am UTC](https://www.ruby-forum.com/t/creating-detached-processes/57352 "2006-04-10T08:04:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![s.ross\_Ssent\_by\_Nab](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@s.ross\_Ssent\_by\_Nab](https://www.ruby-forum.com/u/s.ross_Ssent_by_Nab)\
**Post date:** [April 10, 2006, 8:04am UTC](https://www.ruby-forum.com/t/creating-detached-processes/57352/1 "2006-04-10T08:04:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![s.ross\_Ssent\_by\_Nab](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@s.ross\_Ssent\_by\_Nab](https://www.ruby-forum.com/u/s.ross_Ssent_by_Nab)\
**Post date:** [April 10, 2006, 9:52am UTC](https://www.ruby-forum.com/t/creating-detached-processes/57352/2 "2006-04-10T09:52:08Z")

</div>

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

s.ross (sent by [Nabble.com](http://Nabble.com)) wrote:

> ssh removed\_email\_address@domain.invalid ‘managewebprocess --restart’
> 
> Is there any library support for this?

Daemons… [http://rubyforge.org/projects/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](http://enigmail.mozdev.org)

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