Skip to content

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

Merged
dliappis merged 1 commit intoelastic:6.7from
dliappis:backport-6.7-35933
Feb 13, 2019
Merged

Don't fail init script if /proc/.../max_map_count absent (#35933)#38792
dliappis merged 1 commit intoelastic:6.7from
dliappis:backport-6.7-35933

Conversation

@dliappis
Copy link
Copy Markdown
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 >bug :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts backport labels Feb 12, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra

@dliappis dliappis self-assigned this Feb 12, 2019
@dliappis dliappis merged commit a328654 into elastic:6.7 Feb 13, 2019
@dliappis dliappis deleted the backport-6.7-35933 branch February 13, 2019 07:59
@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