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

Check if proc file exists before calling sysctl #8793

Conversation

spinscale
Copy link
Contributor

The packaged init scripts could return an error, if the file
/proc/sys/vm/max_map_count was not existing and we still called
sysctl.

This is primarly to prevent confusing error messages when elasticsearch
is started under virtualized environments without a proc file system.

Closes #4978

@rjernst
Copy link
Member

rjernst commented Dec 6, 2014

LGTM.

The packaged init scripts could return an error, if the file
/proc/sys/vm/max_map_count was not existing and we still called
sysctl.

This is primarly to prevent confusing error messages when elasticsearch
is started under virtualized environments without a proc file system.

Closes elastic#4978
@spinscale spinscale force-pushed the fix/issue-4978-check-for-existing-file-in-proc branch from 281c03f to 7b64a5c Compare December 8, 2014 08:56
@spinscale spinscale merged commit 7b64a5c into elastic:master Dec 8, 2014
@spinscale spinscale added :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts v2.0.0-beta1 v1.5.0 labels Dec 9, 2014
@clintongormley clintongormley changed the title Packaging: Check if proc file exists before calling sysctl Check if proc file exists before calling sysctl Jun 7, 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 v1.5.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sysctl: permission denied on key 'vm.max_map_count' - OpenVZ Elasticsearch 0.90.9 compatibility issue
4 participants