Hi, just in case it's useful (and because it was slightly tricky to set this up). If you are on Ubuntu and just care about starting sphinx at boot (without monit or god), one thing you can do is edit /etc/ rc.local and add the following line in it:
su myuser -c "PATH=/usr/local/bin && cd /var/sites/myapp/current && / my/path/to/ruby/bin/rake ts:start RAILS_ENV=production 2> /var/sites/ myapp/shared/log/sphinx-init.err.log 1> /var/sites/myapp/shared/log/ sphinx-init.log" It seems to work fine, although I have some errors in the logs. Invoking ts:restart from the command line after that seems to do the job too. If anyone has a better version or advices, please share! cheers Thibaut On Jan 9, 10:34 am, Thibaut Barrère <[email protected]> wrote: > Hi, > > I have two deployments for which I'd like to be "reboot ready" (and > possibly, "process-dying" ready!). > > Once of these deployments is occurring on Solaris which has SMF > service management facility built-in, so I'll pick that. > > => if someone has a SMF manifest already relying on > thinking_sphinx:start or searchd, that would be definitely helpful > (I'll contribute mine once done if nobody steps in). > > The other one occurs on Ubuntu. > > => I'm not a god/monit guy too much already, so if someone has a > tested setup for one of these (or any other system) together with > searchd or (better) ts:start, that would be most welcome! > > I believe these things would be worth gathering on the GitHub wiki > too ! > > thanks, > > -- Thibaut --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
