Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661916 - app-misc/elasticsearch init script should use command_args_background
Summary: app-misc/elasticsearch init script should use command_args_background
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-23 19:25 UTC by William Hubbs
Modified: 2018-07-23 22:47 UTC (History)
2 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 William Hubbs gentoo-dev 2018-07-23 19:25:34 UTC
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
Comment 1 Tomáš Mózes 2018-07-23 19:39:50 UTC
Feel free to improve the init script, thank you.
Comment 2 Larry the Git Cow gentoo-dev 2018-07-23 22:47:13 UTC
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(+)