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

Add pid file to Environment #10986

Merged
merged 1 commit into from May 5, 2015
Merged

Conversation

tlrx
Copy link
Member

@tlrx tlrx commented May 5, 2015

This commit adds the path of the PID file to the Environment. It also add it to the Security Manager since the PID file is deleted by a shutdown hook when the JVM is exited.

@tlrx
Copy link
Member Author

tlrx commented May 5, 2015

@rmuir Can you have a look please? I spotted it when testing #10725. Thanks

@rmuir
Copy link
Contributor

rmuir commented May 5, 2015

Hey this is great. is there anyway we coudl add a unit test in SecurityTests? (just create a fake pid file in tests temp dir like the other tests and assert it has permissions)

@tlrx
Copy link
Member Author

tlrx commented May 5, 2015

@rmuir I updated the code after your last comment

@rmuir
Copy link
Contributor

rmuir commented May 5, 2015

Looks good. When pushing, can we add a small javadoc for the Environment.pidFile() that mentions it returns null if no pid file is configured? Other paths do not return null, but here callers need to check.

This commit adds the path of the PID file to the Environment. It also add it to the Security Manager since the PID file is deleted by a shutdown hook when the JVM is exited.
@tlrx tlrx force-pushed the add-pidfile-to-environment branch from 79869c8 to 3976724 Compare May 5, 2015 17:59
@tlrx tlrx merged commit 3976724 into elastic:master May 5, 2015
@kevinkluge kevinkluge removed the review label May 5, 2015
@tlrx tlrx deleted the add-pidfile-to-environment branch June 3, 2015 11:05
@clintongormley clintongormley added >enhancement :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts labels Jun 8, 2015
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts >enhancement Team:Delivery Meta label for Delivery team v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants