ES version: 8.3.3
OS: CENTOS 8
We are using packages to distribute our config files in custom directory for the ES service. We can't replace /etc/sysconfig/elasticsearch, because it is owned by the elasticsearch package.
I've noticed similar issues reported, but nothing was done. The main reason this happens is because in /usr/share/elasticsearch/bin/elasticsearch-env we always source /etc/sysconfig/elasticsearch. This leads that ES_PATH_CONF always points to /etc/elasticsearch.