# Run as a service

**URL:** <https://discuss.elastic.co/t/run-as-a-service/100460>\
**Category:** Kibana\
**Created:** [September 14, 2017, 6:18am UTC](https://discuss.elastic.co/t/run-as-a-service/100460 "2017-09-14T06:18:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [September 14, 2017, 6:18am UTC](https://discuss.elastic.co/t/run-as-a-service/100460/1 "2017-09-14T06:18:14Z")

</div>

I installed the kibana 5.5 tar. file. to make it run as a service i copied the kibana folder in (opt/kibana) and copied the kibana file (bin/kibana) to (etc/init.d) folder and ran the command  
sudo update-rc.d kibana defaults 95  
after it whenever i try to run sudo service kibana start  
it says ( "unable to find usable node.js executable ").

Help would be really appreciated

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [September 14, 2017, 5:06pm UTC](https://discuss.elastic.co/t/run-as-a-service/100460/2 "2017-09-14T17:06:42Z")

</div>

Here is another post answering how to run kibana as a service [Running kibana as a service on Linux](https://discuss.elastic.co/t/running-kibana-as-a-service-on-linux/72021/2)

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [September 15, 2017, 6:40am UTC](https://discuss.elastic.co/t/run-as-a-service/100460/3 "2017-09-15T06:40:11Z")

</div>

Thankyou for the reply  
But the instructions which are given there are for debian not for tar.  
i have already installed the tar package

---

<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:** [September 15, 2017, 9:12am UTC](https://discuss.elastic.co/t/run-as-a-service/100460/4 "2017-09-15T09:12:42Z")

</div>

You will need to build your own service file for that, we don't provide one in the tar.gz.

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [September 19, 2017, 1:55pm UTC](https://discuss.elastic.co/t/run-as-a-service/100460/5 "2017-09-19T13:55:25Z")

</div>

It would be very easy to switch from running Kibana from the tar you downloaded to running the service.

Just follow the instructions to either set up the repo so that you can use `apt-get install kibana`, or download the .deb package and `dpkg -i kibana..<your version>.deb`.

Then copy any config file changes you have made in your kibana.yml from your tar install to /etc/kibana/kibana.yml

Then `service kibana start`. Since Kibana stores all it's objects in Elasticsearch it should all be there in your Kibana running as a service.

---

<div class="post-metadata">

**Author:** ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)\
**Post date:** [September 20, 2017, 6:10am UTC](https://discuss.elastic.co/t/run-as-a-service/100460/6 "2017-09-20T06:10:49Z")

</div>

Thankyou  
and what should i do for elasticsearch

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [September 22, 2017, 2:50pm UTC](https://discuss.elastic.co/t/run-as-a-service/100460/7 "2017-09-22T14:50:28Z")

</div>

You can also download and install the Elasticsearch .deb package. Then you should edit `/etc/elasticsearch/elasticsearch.yml` and make sure your data path points to your previous data directory, or copy your data directory from your old tar.gz install to the new default location `/var/lib/elasticsearch/nodes/`

---

<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:** [October 20, 2017, 2:50pm UTC](https://discuss.elastic.co/t/run-as-a-service/100460/8 "2017-10-20T14:50:54Z")

</div>

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