Hi!

On Mon, Mar 05, 2007 at 05:25:50PM +0100, Adam Thorsen wrote:
> I need a way to kill the ferret_server drb process programatically, so I
> can start/stop it as part of the capistrano deployment process.
> 
> This should be as simple as adding some sort of stop method to
> ActsAsFerret::Remote::Server.  I was just messing around and was able to
> do it by modifying method_missing to look for the :stop method and then
> calling DRb.thread.exit -- this is not good enough for a general
> solution however.
> 
> If anyone has an idea of how it should be done, I can do it and submit a
> patch.

I could imagine a set of start/stop scripts where the start script
launched the server as a daemon and recorded it's pid somewhere. stop
the only had to read that pid and kill the process. Those scripts could
then be easily be called from cap recipes.

Something like Daemonize (http://grub.ath.cx/daemonize/) might come in
handy.

I'd really appreciate if you could tackle that subject :-)

cheers,
Jens


-- 
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[EMAIL PROTECTED] | www.webit.de
 
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to