I am setting up ElasticSearch on a Ubuntu VM and am running into some issues when settings it up to be a startup daemon. I have ES running just fine, I can run the server by going
sudo /usr/share/elasticsearch/bin/elasticsearch. This runs the server and I can
curl localhost:9200 just fine.
I then used this guide to set up a startup service. The problem is after doing everything they said:
sudo update-rc.d elasticsearch defaults 95 10
sudo /etc/init.d/elasticsearch start
I can see the service appears to be running just fine by running
sudo /etc/init.d/elasticsearch status (or just
service elasticsearch <start|stop|restart> works as well), however a
top or another
curl localhost:9200 shows the server as not being spun up.
Furthermore, I can see the output to the start command shows everything ran fine without any error.. The
start-stop-daemon command returned 0 (which is success) as if nothing went wrong...
I am fairly new to this, so I am not sure what to try next or where to look for a bad configuration. Any one have any ideas? Thanks