# Deploying ruby daemon processes (capistrano?)

**URL:** <https://www.ruby-forum.com/t/deploying-ruby-daemon-processes-capistrano/64307>\
**Category:** Ruby\
**Created:** [June 24, 2006, 2:04am UTC](https://www.ruby-forum.com/t/deploying-ruby-daemon-processes-capistrano/64307 "2006-06-24T02:04:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![scorintha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/278dde/32.png) [@scorintha](https://www.ruby-forum.com/u/scorintha)\
**Post date:** [June 24, 2006, 2:04am UTC](https://www.ruby-forum.com/t/deploying-ruby-daemon-processes-capistrano/64307/1 "2006-06-24T02:04:53Z")

</div>

I have a ruby job that is to run as a daemon on a bunch of machines  
(basically in /etc/init.d somewhere).

It seems like Capistrano provides the correct framework for deploying  
something like this â?? but it is very rails-centric.

It appears that I could define a new role called, say, :deamon â?? but  
itâ??s not obvious to me how to extend the existing tasks to also function  
on this role, when I want them to.

Any advice?

Thanks,

Mark

---

<div class="post-metadata">

**Author:** ![scorintha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/278dde/32.png) [@scorintha](https://www.ruby-forum.com/u/scorintha)\
**Post date:** [June 24, 2006, 11:04pm UTC](https://www.ruby-forum.com/t/deploying-ruby-daemon-processes-capistrano/64307/2 "2006-06-24T23:04:58Z")

</div>

On 6/23/06, Mark N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I have a ruby job that is to run as a daemon on a bunch of machines  
> (basically in /etc/init.d somewhere).
> 
> It seems like Capistrano provides the correct framework …

I don’t know about Capistrano, but if you are writing scripts which  
are simply daemons to be launched in /etc/init.d, then I think you  
want to check out the gem called:

daemons (0.4.4)  
A toolkit to create and control daemons in different ways
