# Kibana not running in background in unix

**URL:** <https://discuss.elastic.co/t/kibana-not-running-in-background-in-unix/43650>\
**Category:** Kibana\
**Created:** [March 7, 2016, 12:35pm UTC](https://discuss.elastic.co/t/kibana-not-running-in-background-in-unix/43650 "2016-03-07T12:35:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinivas](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@srinivas](https://discuss.elastic.co/u/srinivas)\
**Post date:** [March 7, 2016, 12:35pm UTC](https://discuss.elastic.co/t/kibana-not-running-in-background-in-unix/43650/1 "2016-03-07T12:35:18Z")

</div>

I am using kibana 4.3.1 on unix host.  
I have started Kibana from the install directory: bin/kibana.

But when I close my current session of unix box or connection is lost kibana is not running in background. It is getting.

How do we run kibana in background and find the pid using ps -ef | grep kibana ??

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 7, 2016, 12:41pm UTC](https://discuss.elastic.co/t/kibana-not-running-in-background-in-unix/43650/2 "2016-03-07T12:41:58Z")

</div>

Kibana isn't different from any other service. Run it via an init script, systemd, Upstart, or whatever your OS recommends. If you install the RPM or the Debian package this is taken care of.

---

<div class="post-metadata">

**Author:** ![srinivas](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@srinivas](https://discuss.elastic.co/u/srinivas)\
**Post date:** [March 7, 2016, 12:53pm UTC](https://discuss.elastic.co/t/kibana-not-running-in-background-in-unix/43650/3 "2016-03-07T12:53:16Z")

</div>

I started using the below command:  
nohup ./kibana \> /dev/null 2\>&1 &

But when I do an ps -ef | grep kibana I cannot find any kibana process running

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 7, 2016, 12:55pm UTC](https://discuss.elastic.co/t/kibana-not-running-in-background-in-unix/43650/4 "2016-03-07T12:55:33Z")

</div>

Don't use nohup. Again, use an init script, systemd, Upstart, or whatever your operating system recommends. If you're planning on using this seriously don't take any shortcuts like nohup.

Still, Kibana should be visible in the process list. Perhaps it isn't starting up okay?

---

<div class="post-metadata">

**Author:** ![srinivas](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@srinivas](https://discuss.elastic.co/u/srinivas)\
**Post date:** [March 7, 2016, 1:12pm UTC](https://discuss.elastic.co/t/kibana-not-running-in-background-in-unix/43650/5 "2016-03-07T13:12:41Z")

</div>

It is starting up when started through nohup. I am able to see the UI.  
But its not shown in grep kibana.

I am able to see below process for the user which is starting kibana : ps -ef | grep -u user  
user 23101 1 0 Mar01 ? 00:21:23 ./../node/bin/node ./../src/cli

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 7, 2016, 6:10pm UTC](https://discuss.elastic.co/t/kibana-not-running-in-background-in-unix/43650/6 "2016-03-07T18:10:06Z")

</div>

> I am able to see below process for the user which is starting kibana : ps -ef | grep -u user  
> user 23101 1 0 Mar01 ? 00:21:23 ./../node/bin/node ./../src/cli

Yeah, that looks like Kibana.

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [March 8, 2016, 12:29am UTC](https://discuss.elastic.co/t/kibana-not-running-in-background-in-unix/43650/7 "2016-03-08T00:29:52Z")

</div>

It's not going to show up as `kibana` in the process list, because it's not a real binary, it's a node application. `bin/kibana` is just a bash script that started up the node process, so it'll show up in your process list as `node`.

---

<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:59pm UTC](https://discuss.elastic.co/t/kibana-not-running-in-background-in-unix/43650/8 "2017-07-06T13:59:57Z")

</div>


