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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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. On 15/09/06, David Marko <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > 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 > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Michael Siebert
2006-Sep-15 10:17 UTC
Re: How to start BackgrounDRB when rails app starts?
2006/9/15, Ian Leitch <port001-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > 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 Siebert <info-norLuBQQNv0t+8dGM1inlw@public.gmane.org> www.siebert-wd.de - Gedanken lesen www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 9/15/06, Michael Siebert <info-norLuBQQNv0t+8dGM1inlw@public.gmane.org> wrote:> > > > 2006/9/15, Ian Leitch <port001-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > > 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! > > >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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Ezra Zygmuntowicz
2006-Sep-15 18:10 UTC
Re: How to start BackgrounDRB when rails app starts?
On Sep 15, 2006, at 3:29 AM, hemant wrote:> > On 9/15/06, Michael Siebert <info-norLuBQQNv0t+8dGM1inlw@public.gmane.org> wrote: > > > 2006/9/15, Ian Leitch <port001-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > 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! > > > > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---