I found that your init script does not separate the arguments needed to make elasticsearch daemonize into command_args_background. It should do so so that it is possible to use supervise-daemon with elasticsearch. It looks like your init scripts should contain these lines: command_args="-Epath.logs=${LOG_DIR} -Epath.data=${DATA_DIR}" command_args_background="--daemonize --pidfile=${pidfile}" Please let me know if you want me to make this change, or when you can do it. Thanks, William
Feel free to improve the init script, thank you.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b0ea052ce7061abdb6bc7efee5222bca9a26dc6 commit 4b0ea052ce7061abdb6bc7efee5222bca9a26dc6 Author: William Hubbs <williamh@gentoo.org> AuthorDate: 2018-07-23 22:42:15 +0000 Commit: William Hubbs <williamh@gentoo.org> CommitDate: 2018-07-23 22:46:59 +0000 app-misc/elasticsearch: 6.3.1-r2 bump for new service script The update to the service script separates command_args and command_args_background so that the script can be set up to use supervise-daemon. Closes: https://bugs.gentoo.org/show_bug.cgi?id=661916 Package-Manager: Portage-2.3.40, Repoman-2.3.9 .../elasticsearch/elasticsearch-6.3.1-r2.ebuild | 77 ++++++++++++++++++++++ app-misc/elasticsearch/files/elasticsearch.init.5 | 68 +++++++++++++++++++ 2 files changed, 145 insertions(+)