Hi Jay

If you want to patch Riddle for this, that'd be fantastic. The controller index 
call accepts an options hash (you'll see :verbose in use), so perhaps something 
similar for the start call? Perhaps :nodetach => true could add the flag to the 
searchd request?

And then from there, adding a task to TS making use of that setting, plus what 
you've got with the fork call and signal trapping, would be easy enough too.

-- 
Pat

On 26/05/2011, at 11:08 PM, Jay Zeschin wrote:

> And realized that I forgot to actually link to the gist.  Whoops.
> 
> https://gist.github.com/994070
> 
> On Thu, May 26, 2011 at 3:06 PM, Jay Zeschin <[email protected]> wrote:
> Not sure if anyone else out there is working with Foreman 
> (https://github.com/ddollar/foreman) for managing processes in development or 
> deployment, but we've been using it on a project lately and it's been quite 
> handy for starting multiple processes in a single shot. The only downside is 
> that it requires processes to run in the foreground, which is a bit tricky 
> with Sphinx.
> 
> I put together a gist with a snippet from our Procfile as well as the rake 
> task we needed to make Sphinx run in the foreground.  Ideally, it'd be 
> awesome to turn this into one of the standard TS rake tasks, though it'd 
> require some mucking around with Riddle::Controller to allow multiple 
> strategies for invoking the searchd process programmatically.  Not quite sure 
> the best way to structure that, but if anyone has a good idea I'm all ears.
> 
> Anyway, hopefully this is helpful to someone else.
> 
> Jay
> 
> -- 
> Jay Zeschin
> [email protected]
> 720.273.9549
> 
> 
> 
> -- 
> Jay Zeschin
> [email protected]
> 720.273.9549
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/thinking-sphinx?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to