Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 597454 - app-misc/elasticsearch-5.0.0_rc1 systemd unit file using wrong switches
Summary: app-misc/elasticsearch-5.0.0_rc1 systemd unit file using wrong switches
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-18 15:10 UTC by Mike Lothian
Modified: 2017-03-10 13:48 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lothian 2016-10-18 15:10:16 UTC
The startup options for elasticsearch have changed in version 5

starts elasticsearch

Option                Description
------                -----------
-E <KeyValuePair>     Configure a setting
-V, --version         Prints elasticsearch version information and exits
-d, --daemonize       Starts Elasticsearch in the background
-h, --help            show help
-p, --pidfile <Path>  Creates a pid file in the specified path on start
-q, --quiet           Turns off standard ouput/error streams logging in console
-s, --silent          show minimal output
-v, --verbose         show verbose output
ERROR: D is not a recognized option
Comment 1 Ferenc Erki 2016-11-03 07:36:55 UTC
Also changed the way how JVM options and logging are configured.
Comment 2 Vladimir Vrzić 2017-01-09 16:14:46 UTC
Proposing this change to ExecStart in elasticsearch.service5:

ExecStart=/usr/share/elasticsearch/bin/elasticsearch \
  --pidfile ${PID_DIR}/elasticsearch.pid \
  -Epath.logs=${LOG_DIR} \
  -Epath.data=${DATA_DIR} \
  -Epath.conf=${CONF_DIR}
Comment 3 dE 2017-01-13 11:09:04 UTC
Confirmed with 5.0.1
Comment 4 dE 2017-01-20 06:41:51 UTC
Besides I think PID_DIR, LOG_DIR, DATA_DIR must be set in the default config.
Comment 5 Cristian Gherman 2017-02-05 14:44:54 UTC
Bug persist also in 5.1.1 version. elasticsearch refuse to start with systemd
Comment 6 Tomáš Mózes 2017-02-06 05:02:54 UTC
Please try this version: https://github.com/gentoo/gentoo/pull/3523
Comment 7 Cristian Gherman 2017-02-06 17:12:05 UTC
I get the script from rpm package and works fine. (Elasticsearch 5.1.1)
Comment 8 Vladimir Vrzić 2017-03-02 12:48:25 UTC
Issue fixed in elasticsearch-5.1.2.ebuild and files/elasticsearch.service6
Comment 9 Tomáš Mózes 2017-03-10 13:48:38 UTC
Thank for testing, closing.