# Problems configuring Elasticsearch 5.0 using not standart paths

**URL:** <https://discuss.elastic.co/t/problems-configuring-elasticsearch-5-0-using-not-standart-paths/66103>\
**Category:** Elasticsearch\
**Created:** [November 15, 2016, 11:46am UTC](https://discuss.elastic.co/t/problems-configuring-elasticsearch-5-0-using-not-standart-paths/66103 "2016-11-15T11:46:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![olorasde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/olorasde/32/40103_2.png) [@olorasde](https://discuss.elastic.co/u/olorasde)\
**Post date:** [November 15, 2016, 11:46am UTC](https://discuss.elastic.co/t/problems-configuring-elasticsearch-5-0-using-not-standart-paths/66103/1 "2016-11-15T11:46:09Z")

</div>

I trying to install an Elasticsearch server in a Centos7 using tar.gz distribution.

I'm using systemctl as mechanism to start elasticsearch and i configured all file locations in my new structure.

The problem appear when i try to configure the variable CONF\_DIR. In my configuration directory, i have 3 files and 1 subdirectory:

- elasticsearch.yml
- jvm.options
- log4j2.properties
- /scritps

When I start elasticsearch, the configuration inside elasticsearch.yml and log4j2.properties it's read, but not for jvm.options.

For this file, prevails the configuration existing in EL\_HOME/config/jvm.options.

I suspect that the problem is in file /usr/lib/systemd/system/elasticsearch.service, that's contain the variable;

WorkingDirectory=EL\_HOME

somehow this configuration use the jvm options declared in EL\_HOME/config/jvm.options instead of the variables configured in file declared in CONF\_DIR

Note: I use EL\_HOME to hide the real path.

Somebody have any idea to delegate jvm.options configuration outside?

Thx!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 13, 2016, 11:46am UTC](https://discuss.elastic.co/t/problems-configuring-elasticsearch-5-0-using-not-standart-paths/66103/2 "2016-12-13T11:46:08Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
