# How to kill completely the kibana process?

**URL:** https://discuss.elastic.co/t/how-to-kill-completely-the-kibana-process/83063
**Category:** Kibana
**Created:** [April 20, 2017, 1:41pm UTC](https://discuss.elastic.co/t/how-to-kill-completely-the-kibana-process/83063 "2017-04-20T13:41:17Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)
#### Post date: [April 20, 2017, 1:41pm UTC](https://discuss.elastic.co/t/how-to-kill-completely-the-kibana-process/83063/1 "2017-04-20T13:41:17Z")

</div>

I tried this `ps -ef | grep kibana` and find the process but even though i killed by using `kill -9 <pid>`but still it is running in different pid's.

```
admin@kibana:/var/log$ ps -ef | grep kibana
root 41202 1 0 04:52 ? 00:00:06 /opt/kibana/bin/../node/bin/node /opt/kibana/bin/../src/cli
root 50196 1 0 05:26 ? 00:00:00 /bin/sh -e -c /opt/kibana/bin/kibana /bin/sh
root 50197 50196 61 05:26 ? 00:00:00 /opt/kibana/bin/../node/bin/node /opt/kibana/bin/../src/cli
admin 50206 46555 0 05:26 pts/7 00:00:00 grep --color=auto kibana
admin@kibana:/var/log$ ps -ef | grep 5806
admin 50292 46555 0 05:26 pts/7 00:00:00 grep --color=auto 5806

```

When i see in logs it is showing error like this

`{"type":"log","@timestamp":"2017-04-21T05:20:47Z","tags":["fatal"],"pid":48717,"level":"fatal","message":"listen EADDRINUSE 0.0.0.0:5806","error":{"message":"listen EADDRINUSE 0.0.0.0:5806","name":"Error","stack":"Error: listen EADDRINUSE 0.0.0.0:5806\n at Object.exports._errnoException (util.js:873:11)\n at exports._exceptionWithHostPort (util.js:896:20)\n at Server._listen2 (net.js:1250:14)\n at listen (net.js:1286:10)\n at net.js:1395:9\n at nextTickCallbackWith3Args (node.js:453:9)\n at process._tickDomainCallback (node.js:400:17)","code":"EADDRINUSE"}}`

Thanks

---

<div class="post-metadata">

### Author: ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)
#### Post date: [April 21, 2017, 10:43am UTC](https://discuss.elastic.co/t/how-to-kill-completely-the-kibana-process/83063/2 "2017-04-21T10:43:17Z")

</div>

Hey @Yaswanth, how did you install Kibana? If you installed it using a deb/rpm, and you're running it via sysvinit/systemd/upstart, it will automatically restart the process when you stop it.

---

<div class="post-metadata">

### Author: ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)
#### Post date: [April 21, 2017, 11:04am UTC](https://discuss.elastic.co/t/how-to-kill-completely-the-kibana-process/83063/3 "2017-04-21T11:04:44Z")

</div>

Thanks @Brandon_Kobel

It was installed through debian but i dont know via on which it is running on [quote="Brandon\_Kobel, post:2, topic:83063"]  
it will automatically restart the process when you stop it  
[/quote]

Then how can i restart kibana, suppose if i updated anything in kibana.yml file like passwords etc.

---

<div class="post-metadata">

### Author: ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)
#### Post date: [April 21, 2017, 11:06am UTC](https://discuss.elastic.co/t/how-to-kill-completely-the-kibana-process/83063/4 "2017-04-21T11:06:42Z")

</div>

@Yaswanth if you type `service kibana status` do you see that it's running? If it is running, you can stop it using `service kibana stop`. Likewise, you can restart it by doing `service kibana restart`.

---

<div class="post-metadata">

### Author: ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)
#### Post date: [April 21, 2017, 11:23am UTC](https://discuss.elastic.co/t/how-to-kill-completely-the-kibana-process/83063/5 "2017-04-21T11:23:16Z")

</div>

Thanks

When i tried `service kibana stop` it is showing that process is running in some pid number . And when i tried `service kibana restart` it is showing the process is already running.

May be this stop and restart will work internally , means if i do [quote="Brandon\_Kobel, post:4, topic:83063"]  
service kibana stop  
[/quote]

if stops and automatically starts.

And if i do [quote="Brandon\_Kobel, post:4, topic:83063"]  
service kibana restart  
[/quote]

it restarts internally and shows it is already running

Whether my interpretation is correct?

Because in ES i am able to see the status that the process is stopped and started but here i cant able to see that .

Thanks

---

<div class="post-metadata">

### Author: ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)
#### Post date: [April 21, 2017, 12:20pm UTC](https://discuss.elastic.co/t/how-to-kill-completely-the-kibana-process/83063/6 "2017-04-21T12:20:28Z")

</div>

@Yaswanth, would you mind posting the output that you get when running `service kibana status` and then `service kibana stop`?

---

<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: [May 19, 2017, 12:33pm UTC](https://discuss.elastic.co/t/how-to-kill-completely-the-kibana-process/83063/7 "2017-05-19T12:33:48Z")

</div>

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