[Answered ]-Find PID of a daemon?

2👍

To find the PID, try this:

ps -ef | grep elasticsearch | xargs | awk '{print $2}'

To kill it:

sudo kill -9 PID

I have little experience with Mac. This link may help in finding a proper way to stop a daemon:
http://elasticsearch-users.115913.n3.nabble.com/Cannot-kill-ElasticSearch-process-Mac-OS-X-es-version-0-19-10-td4028808.html

👤Quinn

Leave a comment