-
-
Notifications
You must be signed in to change notification settings - Fork 598
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
pid_path is owned by elasticsearch #193
Comments
in https://github.com/elasticsearch/elasticsearch/blob/master/src/deb/init.d/elasticsearch#L152, we can see the pid file being created by the init.d script and chown to elasticsearch. @karmi would you consider a patch to fix this behavior ? |
I believe you mean this line? The location has been changed because of discussion in #108. So the expression in The problem is that we can't actually blindly |
a way to fix this would be to specify the pid_path directory resource without specifying the owner/group. This would let existing value if the directroy already exists or give it to root if created by chef. the current default of pid_path is a directory used by several applications (not only elasticsearch), giving it to elasticsearch user breaks these other applications. |
Agreed, this shouldn't happen. Chowning the PID file in the init script is safe. |
This commit fixes sous-chefs#193
This commit fixes sous-chefs#193
do you need me to change anything in this PR ? |
This commit fixes sous-chefs#193
@kamaradclimber Sorry, tied up with something else right now, I'll try to process the cookbooks PR soon... Would like to verify it, even though the code change is very simple. |
Hi, thanks for the patch!, merged it in! |
since a95a3f7, default pid_path attribute is /usr/local/var/run.
However the default recipe define this as directory resource and specify that user/group owners are elasticsearch.
This directory should belongs to root and allow elasticsearch to write its pid.
The text was updated successfully, but these errors were encountered: