# Backgroundrb auto-start

**URL:** <https://www.ruby-forum.com/t/backgroundrb-auto-start/88716>\
**Category:** Rails\
**Created:** [March 13, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/backgroundrb-auto-start/88716 "2007-03-13T19:22:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![igotimac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85f322/32.png) [@igotimac](https://www.ruby-forum.com/u/igotimac)\
**Post date:** [March 13, 2007, 7:22pm UTC](https://www.ruby-forum.com/t/backgroundrb-auto-start/88716/1 "2007-03-13T19:22:32Z")

</div>

How I can make my rails application auto-start it’s corresponding  
backgroundrb process?

Is it as simple as finding a way to execute the unix shell command from  
rails?

Right now I need to manually run “rake backgroundrb:start”.

My only other thought is a cron task that calls a script that checks  
running processes and runs “rake backgroundrb:start” if needed, but that  
doesn’t seem very elegant.

thanks,  
Jacob

---

<div class="post-metadata">

**Author:** ![igotimac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85f322/32.png) [@igotimac](https://www.ruby-forum.com/u/igotimac)\
**Post date:** [February 26, 2008, 11:44am UTC](https://www.ruby-forum.com/t/backgroundrb-auto-start/88716/2 "2008-02-26T11:44:39Z")

</div>

I start backgroundRb with my app server.  
Eg. for development I use script/server, so everything you need is add a  
line of code to server script.
