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

Comments

Projects
None yet
4 participants
@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

This comment has been minimized.

Copy link
Member

spinscale commented Aug 7, 2013

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

This comment has been minimized.

Copy link
Author

rwky commented Aug 7, 2013

Yep 10.04 is LTS it's supported until 2015.

@spinscale

This comment has been minimized.

Copy link
Member

spinscale commented Aug 8, 2013

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

This comment has been minimized.

Copy link
Author

rwky commented Aug 8, 2013

Yep that works great!

@ThomasTr

This comment has been minimized.

Copy link

ThomasTr commented Aug 11, 2013

Hi,

works also great on Debian 6 :)

@spinscale spinscale closed this in a7b6433 Aug 12, 2013

spinscale added a commit that referenced this issue Aug 12, 2013

Fix debian init script to not depend on new start-stop-daemon
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

This comment has been minimized.

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

Fix debian init script to not depend on new start-stop-daemon
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
You can’t perform that action at this time.