You can either use the startup scripts that come with the package when you
install via apt/yum [1] or use the service wrapper [2].

[1]
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html
[2] https://github.com/elasticsearch/elasticsearch-servicewrapper

-- 
Ivan


On Fri, Jun 20, 2014 at 7:49 AM, Maciej Dziardziel <fied...@gmail.com>
wrote:

> use start-stop-daemon or adapt /etc/init.d/elasticsearch to set up pidfile
> guarding es instance. Or just run this way:
> pgrep -f elasticsearch || ./start_es.sh
>
>
> On Friday, June 20, 2014 3:21:08 PM UTC+1, Andrew Gaydenko wrote:
>>
>> There were a couple of times during development workflow I have started
>> ES script the second time. It results in red status (I use Elastic HQ) and
>> not-working. So I'm forced to regenerate all indexes (with all test data)
>> again. It takes noticeable time.
>>
>> At the moment I use this script
>>
>> ES_MAX_MEM="512M"
>> export ES_MAX_MEM
>> cd /ES-dir/bin
>> ./elasticsearch.in.sh
>> ./elasticsearch -f &
>>
>>
>> under Linux to start ES. Can you. please, suggest a trick to avoid
>> falling in red?
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/d78daaaf-305b-45b4-ad9a-e34cf1adbb22%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/d78daaaf-305b-45b4-ad9a-e34cf1adbb22%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDQMVO4sf-%3Dgq_cnQRX6cTP1RG7_HquR_tAoVa6A_VoFg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to