How to start BackgrounDRB when rails app starts?

Documentation says that I can start it manualy with rake task ‘rake
backgroundrb:start’. But how to start it automaticly when my rails
application starts?

e.g. When I run ‘mongrel_rails start’ … how to ensure that
BackgroundDRb starts as well?

Thanks for any hint,
David

Apparently you need to start backgroundrb before the server and the next
version will come with wrapper scripts that start backgroundrb and the
server for you.

2006/9/15, Ian L. [email protected]:

Apparently you need to start backgroundrb before the server and the next
version will come with wrapper scripts that start backgroundrb and the
server for you.

when you start backgroundrb doesnt matter at all. you could even write
an
init script to start bgdrb at system startup!


Michael S. [email protected]

www.siebert-wd.de - Gedanken lesen
www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium

On 9/15/06, Michael S. [email protected] wrote:

when you start backgroundrb doesnt matter at all. you could even write an
init script to start bgdrb at system startup!

Or if you really need that. Then you can place the command “rake
backgroundrb:start” in your mongrel.conf file and ask mongrel to start
it.
Though this will help you, only when you are using mongrel.

On Sep 15, 2006, at 3:29 AM, hemant wrote:

write an init script to start bgdrb at system startup!

Or if you really need that. Then you can place the command “rake
backgroundrb:start” in your mongrel.conf file and ask mongrel to
start it. Though this will help you, only when you are using mongrel.

You need to make sure the drb server is started before rails starts

or you won’t be able to use it. Easiest way is to make a wrapper
script that starts the drb server and then starts rails. The new
version coming out this weekend will have scripts for this included.

-Ezra