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
Also changed the way how JVM options and logging are configured.
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}
Confirmed with 5.0.1
Besides I think PID_DIR, LOG_DIR, DATA_DIR must be set in the default config.
Bug persist also in 5.1.1 version. elasticsearch refuse to start with systemd
Please try this version: https://github.com/gentoo/gentoo/pull/3523
I get the script from rpm package and works fine. (Elasticsearch 5.1.1)
Issue fixed in elasticsearch-5.1.2.ebuild and files/elasticsearch.service6
Thank for testing, closing.