# Cannot kill ElasticSearch process (Mac OS X, es version 0.19.10)

**URL:** <https://discuss.elastic.co/t/cannot-kill-elasticsearch-process-mac-os-x-es-version-0-19-10/10512>\
**Category:** Elasticsearch\
**Created:** [January 26, 2013, 12:08pm UTC](https://discuss.elastic.co/t/cannot-kill-elasticsearch-process-mac-os-x-es-version-0-19-10/10512 "2013-01-26T12:08:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marian/32/442_2.png) [@marian](https://discuss.elastic.co/u/marian)\
**Post date:** [January 26, 2013, 12:08pm UTC](https://discuss.elastic.co/t/cannot-kill-elasticsearch-process-mac-os-x-es-version-0-19-10/10512/1 "2013-01-26T12:08:27Z")

</div>

While I wrote this message to the list, asking for help, I figured out the  
solution. So here is my post as a help for others trying their luck via  
Google.

I had installed ElasticSearch a while ago locally via homebrew and had  
forgotten about it. Now I saw the process lying around and wanted to kill  
it, but that didn't work.

It turned out it was controlled via launchd. So it needs launchd to stop or  
even remove the service.

In my case the service was named "homebrew.mxcl.elasticsearch". So the  
command for stopping the service is

```
launchctl stop homebrew.mxcl.elasticsearch

```

and for removing forever:

```
launchctl remove homebrew.mxcl.elasticsearch

```

I order to find the name ("homebrew.mxcl.elasticsearch" in my case) of the  
process, one can use the command

```
launchctl list | grep elastic

```

Hope this helps!

--

---

<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, 2:54am UTC](https://discuss.elastic.co/t/cannot-kill-elasticsearch-process-mac-os-x-es-version-0-19-10/10512/2 "2017-07-06T02:54:31Z")

</div>


