Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Older version of start-stop-daemon don't support --status #3452

Closed
rwky opened this issue Aug 6, 2013 · 6 comments · Fixed by #3462
Closed

Older version of start-stop-daemon don't support --status #3452

rwky opened this issue Aug 6, 2013 · 6 comments · Fixed by #3462

Comments

@rwky
Copy link

rwky commented Aug 6, 2013

Older version of start-stop-daemon don't support --status so the new init.d script throws an error on Ubuntu 10.04

service elasticsearch restart
 * Starting ElasticSearch Server                                                                                                                                                   start-stop-daemon: unrecognized option '--status'
Try 'start-stop-daemon --help' for more information.
start-stop-daemon: unrecognized option '--status'
Try 'start-stop-daemon --help' for more information.

Once started running service elasticsearch stop doesn't stop the service it has to be killed manually.

@ghost ghost assigned spinscale Aug 7, 2013
@spinscale
Copy link
Contributor

Valid point. I'll see how to work around that. If I got it right 10.04 is an LTS release, so it makes sense to work on that, right?

@rwky
Copy link
Author

rwky commented Aug 7, 2013

Yep 10.04 is LTS it's supported until 2015.

@spinscale
Copy link
Contributor

hey

created a PR for this. It would be a great help if you could test the init script in your ubuntu installation and see if it works. Just replace the current one with this:

https://raw.github.com/spinscale/elasticsearch/issue-3452-debian-init-script/src/deb/init.d/elasticsearch

Thanks a lot!

@rwky
Copy link
Author

rwky commented Aug 8, 2013

Yep that works great!

@ThomasTr
Copy link

Hi,

works also great on Debian 6 :)

spinscale added a commit that referenced this issue Aug 12, 2013
By making use of the lsb provided functions, one does not depend on the start-stop daemon version to test if elasticsearch is running.
This ensures, that the init script works on debian wheezy, squeeze, current ubuntu and LTS versions.

Closes #3452
@njam
Copy link

njam commented Aug 26, 2013

fyi this is not in 0.90.3.2, downgrading to 0.90.2 helped.

mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
By making use of the lsb provided functions, one does not depend on the start-stop daemon version to test if elasticsearch is running.
This ensures, that the init script works on debian wheezy, squeeze, current ubuntu and LTS versions.

Closes elastic#3452
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants