Skip to content

Don't fail init script if /proc/.../max_map_count absent (#35933) #38789

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

Merged
merged 1 commit into from
Feb 13, 2019

Conversation

dliappis
Copy link
Contributor

Currently init scripts fail when /proc/sys/vm/max_map_count is not present
with -bash: [: too many arguments.

Fix conditional logic to avoid trying to set the max_map_count sysctl if not
present.

Relates #27236

…5933)

Currently init scripts fail when `/proc/sys/vm/max_map_count` is not present
with `-bash: [: too many arguments`.

Fix conditional logic to avoid trying to set the `max_map_count` sysctl if not
present.

Relates elastic#27236
@dliappis dliappis added the :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts label Feb 12, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@dliappis dliappis self-assigned this Feb 12, 2019
@dliappis dliappis merged commit 470ac0e into elastic:7.x Feb 13, 2019
@dliappis dliappis deleted the backport-7.x-35933 branch February 13, 2019 07:56
@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
backport >bug :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants