Hi Everyone

Thank you very much. It's work.

I change bash to

#!/bin/bash
#script to re-index TS
PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
cd /var/www/mediawrap
/usr/bin/rake ts:index RAILS_ENV=production

this is work and no problem daemon that stop itself.

On Dec 8, 4:52 am, Jeremy Olliver <[EMAIL PROTECTED]> wrote:
> HiApirak,
>
> Agreed, Check the output from this rake command, because it should be
> performing a command such as
> /usr/bin/indexer model_name_core --config /path/to/config --rotate
>
> where the --rotate option should be used when searchd is already
> running, because it sends the new indexes to the existing searchd
> instance to use, without having to restart it.
>
> On Dec 7, 6:38 pm,Apirak<[EMAIL PROTECTED]> wrote:
>
> > Thnk Henrik Nyh
>
> > When I have only ts:index with out ts:stop and ts:start. I can't
> > search my new media.
> > Is it happen because of cache?
>
> > Thanks
>
> > On Dec 7, 12:07 am, "Henrik Nyh" <[EMAIL PROTECTED]> wrote:
>
> > > Just run the index task, no need to stop and start.
>
> > > On Sat, Dec 6, 2008 at 1:44 PM,Apirak<[EMAIL PROTECTED]> wrote:
>
> > > > Hi All
>
> > > > I stop and start Thinking sphinx every 10 min for Reindex. When
> > > > Thnking sphinx stop user will get error message from rails. Is it
> > > > possible to reindex with out stop and start Thinking sphinx.
>
> > > > I reindex sphinx by crontab
>
> > > > */5 * * * * /var/www/mediawrap/script/re_index.sh >> /var/www/
> > > > mediawrap/log/re_index.log 2>&1
>
> > > > call this script (re_index.sh)
>
> > > > #!/bin/bash
> > > > #script to re-index TS
> > > > PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11
> > > > cd /var/www/mediawrap
> > > > /usr/bin/rake ts:index RAILS_ENV=production
> > > > /usr/bin/rake ts:stop RAILS_ENV=production
> > > > /usr/bin/rake ts:start RAILS_ENV=production
>
> > > > Thanks
>
>

--~--~---------~--~----~------------~-------~--~----~
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