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

Cookbook doesn't work with 1.0.0RCx versions - Startup broken based on behavior change #185

Closed
jensihnow opened this issue Feb 11, 2014 · 2 comments

Comments

@jensihnow
Copy link

With 1.... the startup behavior changes from default background to defualt foreground. Withour fix the cookbook will never finish because ES is running in the foreground, started by Chef.

We fixed this in our wrapper cookbook with replaced init template (elasticsearch.init.erb)
The fix for us is right now just the added -d, but that isn't a fix for all supportes operating systems:

su <%= node[:elasticsearch][:user] %> -c "ES_INCLUDE=$ES_INCLUDE /usr/local
/bin/elasticsearch -d -p $PIDFILE"

Looks like a switch (based on ES version) is needed to check if it's the old or the new startup behavior.

@karmi
Copy link
Contributor

karmi commented Feb 11, 2014

Yeah, I want to update the init script to the new behaviour once 1.0 GA is released.

@jgeiger
Copy link

jgeiger commented Feb 12, 2014

image

:)

@karmi karmi closed this as completed in 0bd966d Feb 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants