forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix inconsitent handling of config dir and path settings and add test
When running bin/elasticsearch config dir and config file can be passed as a parameter independently with -Des.config and -Des.path.conf. If the config file is not provided then it is assumed to be {path.conf}/elasticearch.yml This was not so for running as a service. For deb the CONF_FILE still pointed to the default path even if a custom CONF_DIR was defined. For rpm the CONF_FILE parameter was not passed on at all, see elastic#5329 . Custom config path and config file now work as follows for all services except systemd: CONF_DIR and CONF_FILE undefined: CONF_FILE points to default CONF_DIR defined but CONF_FILE undefined: CONF_FILE points to CONF_DIR/elasticsearch.yml CONF_FILE defined: CONF_FILE must point to an absolute path For systemd this commit only fixes that the service could be started if only a CONF_DIR is defined. However, now a custom CONF_FILE cannot be defined anymore which seemed the lesser evil to me. relates to elastic#12712 and elastic#12954 closes elastic#5329
- Loading branch information
Showing
6 changed files
with
35 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters