In the documentation it says explicitly
For the package distributions, the config directory location defaults to
/etc/elasticsearch. The location of the config directory can also be changed via theES_PATH_CONFenvironment variable, but note that setting this in your shell is not sufficient. Instead, this variable is sourced from/etc/default/elasticsearch(for the Debian package) and/etc/sysconfig/elasticsearch(for the RPM package). You will need to edit theES_PATH_CONF=/etc/elasticsearchentry in one of these files accordingly to change the config directory location.
Is there a way to specify my own path for a different /etc/default/elasticsearch file for a package distribution installation? I already tried by adding the following in my systemd service file which uses the EnvironmentFile I want, but it still uses /etc/default/elasticsearch when the service is comming up.
EnvironmentFile=-/etc/default/elasticsearch-development