Location to startup DRb Server

Hello,

where (in which file/object) would I invoke the startup of the DRb
server to
support a rails application?

It wouldn’t be config/boot.rb ?

How would I shut it down cleanly?

Greetings

Michael K.

On Mar 20, 2006, at 6:59 AM, Michael K. wrote:

Hello,

where (in which file/object) would I invoke the startup of the DRb
server to support a rails application?

It wouldn’t be config/boot.rb ?

How would I shut it down cleanly?

Michael,

I start the DRb server as a separate process:
./script/runner RemoteServer.start

In testing, I just run/kill the process in the terminal.

In prod, I have a script: /etc/rc.d/drb

You should probably use PIDs and startproc, etc., but I just stop it
with:
pkill -KILL -f ‘RemoteServer’

I imagine there is a way to install a Ruby script as a Windows
Service, too.

Hope that helps,
Scott