elasticsearch/elasticsearch — pull request #8793 by spinscale (2014-12-05 13:39:28+00:00)
Title: Packaging: Check if proc file exists before calling sysctl

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