# How do I start elasticsearch as a service?

**URL:** <https://discuss.elastic.co/t/how-do-i-start-elasticsearch-as-a-service/19477>\
**Category:** Elasticsearch\
**Created:** [August 26, 2014, 10:42pm UTC](https://discuss.elastic.co/t/how-do-i-start-elasticsearch-as-a-service/19477 "2014-08-26T22:42:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Greene](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_greene/32/1312_2.png) [@Eric\_Greene](https://discuss.elastic.co/u/Eric_Greene)\
**Post date:** [August 26, 2014, 10:42pm UTC](https://discuss.elastic.co/t/how-do-i-start-elasticsearch-as-a-service/19477/1 "2014-08-26T22:42:19Z")

</div>

Forgive me I'm a little lost.

I am working on deploying elasticsearch on a AWS server. Previously in  
development I have started elasticsearch using ./bin/elasticsearch  
-Des.config=/etc/elasticsearch/elasticsearch.yml

But in live deployment, I want to keep elasticsearch running as a service...

I have 1.2.0 installed on Ubuntu 12.04 on my AWS instance.

I run sudo /etc/init.d/elasticsearch start and I get:

- Starting Elasticsearch server

I check sudo /etc/init.d/elasticsearch status and I get:

- elasticsearch is not running

I'm not sure how to troubleshoot. Any advice or suggestions? Thanks

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1c191994-ba5c-495d-b5e8-4e0bed3c4845%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1c191994-ba5c-495d-b5e8-4e0bed3c4845%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 26, 2014, 11:03pm UTC](https://discuss.elastic.co/t/how-do-i-start-elasticsearch-as-a-service/19477/2 "2014-08-26T23:03:14Z")

</div>

Check the logs under /var/log/elasticsearch, they should have something.

Also please be aware that 1.2.0 has a critical bug and you should be using  
1.2.1 instead.

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 27 August 2014 08:42, Eric Greene [ericdgreene@gmail.com](mailto:ericdgreene@gmail.com) wrote:

> Forgive me I'm a little lost.
> 
> I am working on deploying elasticsearch on a AWS server. Previously in  
> development I have started elasticsearch using ./bin/elasticsearch  
> -Des.config=/etc/elasticsearch/elasticsearch.yml
> 
> But in live deployment, I want to keep elasticsearch running as a  
> service...
> 
> I have 1.2.0 installed on Ubuntu 12.04 on my AWS instance.
> 
> I run sudo /etc/init.d/elasticsearch start and I get:
> 
> - Starting Elasticsearch server
> 
> I check sudo /etc/init.d/elasticsearch status and I get:
> 
> - elasticsearch is not running
> 
> I'm not sure how to troubleshoot. Any advice or suggestions? Thanks
> 
> --  
> 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/1c191994-ba5c-495d-b5e8-4e0bed3c4845%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1c191994-ba5c-495d-b5e8-4e0bed3c4845%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/1c191994-ba5c-495d-b5e8-4e0bed3c4845%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1c191994-ba5c-495d-b5e8-4e0bed3c4845%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624Ya1xeRTaebytv9D8Zv9zTK-7XoB3zK4vhvRNHQuX%3DgMQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624Ya1xeRTaebytv9D8Zv9zTK-7XoB3zK4vhvRNHQuX%3DgMQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Eric\_Greene](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_greene/32/1312_2.png) [@Eric\_Greene](https://discuss.elastic.co/u/Eric_Greene)\
**Post date:** [August 26, 2014, 11:27pm UTC](https://discuss.elastic.co/t/how-do-i-start-elasticsearch-as-a-service/19477/3 "2014-08-26T23:27:36Z")

</div>

Thanks Mark, I found that if I comment out the line in elasticsearch.yml  
that sets the data path, it works.

I will upgrade as you have suggested, thanks for that.

On Tuesday, August 26, 2014 4:04:05 PM UTC-7, Mark Walkom wrote:

> Check the logs under /var/log/elasticsearch, they should have something.
> 
> Also please be aware that 1.2.0 has a critical bug and you should be using  
> 1.2.1 instead.
> 
> Regards,  
> Mark Walkom
> 
> Infrastructure Engineer  
> Campaign Monitor  
> email: [ma...@campaignmonitor.com](mailto:ma...@campaignmonitor.com) \<javascript:\>  
> web: [www.campaignmonitor.com](http://www.campaignmonitor.com)
> 
> On 27 August 2014 08:42, Eric Greene \<[ericd...@gmail.com](mailto:ericd...@gmail.com) \<javascript:\>\>  
> wrote:
> 
> > Forgive me I'm a little lost.
> > 
> > I am working on deploying elasticsearch on a AWS server. Previously in  
> > development I have started elasticsearch using ./bin/elasticsearch  
> > -Des.config=/etc/elasticsearch/elasticsearch.yml
> > 
> > But in live deployment, I want to keep elasticsearch running as a  
> > service...
> > 
> > I have 1.2.0 installed on Ubuntu 12.04 on my AWS instance.
> > 
> > I run sudo /etc/init.d/elasticsearch start and I get:
> > 
> > - Starting Elasticsearch server
> > 
> > I check sudo /etc/init.d/elasticsearch status and I get:
> > 
> > - elasticsearch is not running
> > 
> > I'm not sure how to troubleshoot. Any advice or suggestions? Thanks
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/1c191994-ba5c-495d-b5e8-4e0bed3c4845%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1c191994-ba5c-495d-b5e8-4e0bed3c4845%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/1c191994-ba5c-495d-b5e8-4e0bed3c4845%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1c191994-ba5c-495d-b5e8-4e0bed3c4845%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/58806f15-0a63-44f6-9a35-85a460384fa5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/58806f15-0a63-44f6-9a35-85a460384fa5%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 26, 2014, 11:28pm UTC](https://discuss.elastic.co/t/how-do-i-start-elasticsearch-as-a-service/19477/4 "2014-08-26T23:28:46Z")

</div>

The line is probably just malformed then 🙂

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 27 August 2014 09:27, Eric Greene [ericdgreene@gmail.com](mailto:ericdgreene@gmail.com) wrote:

> Thanks Mark, I found that if I comment out the line in elasticsearch.yml  
> that sets the data path, it works.
> 
> I will upgrade as you have suggested, thanks for that.
> 
> On Tuesday, August 26, 2014 4:04:05 PM UTC-7, Mark Walkom wrote:
> 
> > Check the logs under /var/log/elasticsearch, they should have something.
> > 
> > Also please be aware that 1.2.0 has a critical bug and you should be  
> > using 1.2.1 instead.
> > 
> > Regards,  
> > Mark Walkom
> > 
> > Infrastructure Engineer  
> > Campaign Monitor  
> > email: [ma...@campaignmonitor.com](mailto:ma...@campaignmonitor.com)  
> > web: [www.campaignmonitor.com](http://www.campaignmonitor.com)
> > 
> > On 27 August 2014 08:42, Eric Greene [ericd...@gmail.com](mailto:ericd...@gmail.com) wrote:
> > 
> > > Forgive me I'm a little lost.
> > > 
> > > I am working on deploying elasticsearch on a AWS server. Previously in  
> > > development I have started elasticsearch using ./bin/elasticsearch  
> > > -Des.config=/etc/elasticsearch/elasticsearch.yml
> > > 
> > > But in live deployment, I want to keep elasticsearch running as a  
> > > service...
> > > 
> > > I have 1.2.0 installed on Ubuntu 12.04 on my AWS instance.
> > > 
> > > I run sudo /etc/init.d/elasticsearch start and I get:
> > > 
> > > - Starting Elasticsearch server
> > > 
> > > I check sudo /etc/init.d/elasticsearch status and I get:
> > > 
> > > - elasticsearch is not running
> > > 
> > > I'm not sure how to troubleshoot. Any advice or suggestions? Thanks
> > > 
> > > --  
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/1c191994-ba5c-495d-b5e8-4e0bed3c4845%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/1c191994-ba5c-495d-b5e8-4e0bed3c4845%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1c191994-ba5c-495d-b5e8-4e0bed3c4845%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/58806f15-0a63-44f6-9a35-85a460384fa5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/58806f15-0a63-44f6-9a35-85a460384fa5%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/58806f15-0a63-44f6-9a35-85a460384fa5%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/58806f15-0a63-44f6-9a35-85a460384fa5%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624aDG-yDjhRvKDo8ViiQaxtHWpzCa\_cSU5uq4CBf-8fnSQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624aDG-yDjhRvKDo8ViiQaxtHWpzCa_cSU5uq4CBf-8fnSQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:06am UTC](https://discuss.elastic.co/t/how-do-i-start-elasticsearch-as-a-service/19477/5 "2017-07-06T01:06:12Z")

</div>


