I'm in the process of upgrading elasticsearch 1.7.3 to 2.1.1 and have discovered that the default location for the elasticsearch.yml file (config file) has been changed from /etc/elasticsearch to /usr/share/elasticsearch/bin. I'm running elasticsearch 2.1.1 on Ubuntu 12.
I have tried passing this new location of the elasticsearch.yml as a variable within the /etc/init.d/elasticsearch file so that when the elasticsearch service starts up, it looks for the elasticsearch.yml file in /usr/share/elasticsearch/bin. However it doesn't, it continues to reference the old location (/etc/elasticsearch) for the elasticsearch.yml .
How do I ensure that the new location (/usr/share/elasticsearch/bin) is used by elasticsearch?