# Configure elastic as a service

**URL:** <https://discuss.elastic.co/t/configure-elastic-as-a-service/162593>\
**Category:** Elasticsearch\
**Created:** [January 2, 2019, 6:09am UTC](https://discuss.elastic.co/t/configure-elastic-as-a-service/162593 "2019-01-02T06:09:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ram1](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@Ram1](https://discuss.elastic.co/u/Ram1)\
**Post date:** [January 2, 2019, 6:09am UTC](https://discuss.elastic.co/t/configure-elastic-as-a-service/162593/1 "2019-01-02T06:09:55Z")

</div>

Hi,

Wanted to know if elasticsearch/logstash/kibana is not configued as a service,What changes has to be done to configure it as a service.

I get the below errors if try to use systemctl/service command.

systemctl staus elasticsearch/logstash/kibana  
systemctl command not found

service elasticsearch/logstash/kibana status  
elasticsearch: unrecognized service

I dont see any elasticsearch executable file in /etc/init.d directory.  
There is no systemctl file in /bin directory.

To stop elasticsearch service we are killing the elasticsearch service and to to check the status of elasticsearch we need to check if the process is running.

to stop

Kill -i

to check the status

ps -ef|grep -i elasticsearch

OS:ubuntu 14.04

Please suggest what changes has to be made to configure it as a service.

---

<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:** [January 2, 2019, 6:11am UTC](https://discuss.elastic.co/t/configure-elastic-as-a-service/162593/2 "2019-01-02T06:11:26Z")

</div>

How did you install things, DEB/RPM?

---

<div class="post-metadata">

**Author:** ![Ram1](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@Ram1](https://discuss.elastic.co/u/Ram1)\
**Post date:** [January 2, 2019, 6:59am UTC](https://discuss.elastic.co/t/configure-elastic-as-a-service/162593/3 "2019-01-02T06:59:36Z")

</div>

I believe it was done through Debian package(since it is installed on ubuntu).It was setup by different team. Please suggest if there is anyway to check the same.

---

<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:** [January 2, 2019, 7:19am UTC](https://discuss.elastic.co/t/configure-elastic-as-a-service/162593/4 "2019-01-02T07:19:19Z")

</div>

`dpkg -l|grep elasticsearch` should tell you.

---

<div class="post-metadata">

**Author:** ![Ram1](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@Ram1](https://discuss.elastic.co/u/Ram1)\
**Post date:** [January 2, 2019, 8:31am UTC](https://discuss.elastic.co/t/configure-elastic-as-a-service/162593/5 "2019-01-02T08:31:12Z")

</div>

I don't get any output after executing the command.

dpkg -l | grep -i elasticsearch

dpkg -l | grep elasticsearch

---

<div class="post-metadata">

**Author:** ![Ram1](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@Ram1](https://discuss.elastic.co/u/Ram1)\
**Post date:** [January 3, 2019, 2:08pm UTC](https://discuss.elastic.co/t/configure-elastic-as-a-service/162593/6 "2019-01-03T14:08:24Z")

</div>

Can anyone please help me on this.

---

<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:** [January 3, 2019, 7:43pm UTC](https://discuss.elastic.co/t/configure-elastic-as-a-service/162593/7 "2019-01-03T19:43:30Z")

</div>

Looks like it wasn't installed as a service then, so you will either need to build a service file or copy it from somewhere else.

---

<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:** [January 31, 2019, 7:43pm UTC](https://discuss.elastic.co/t/configure-elastic-as-a-service/162593/8 "2019-01-31T19:43:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
