OpenSearch/distribution
Christian Hofstaedtler c3ec6a1714 Honor masking of systemd-sysctl.service
During package install on systemd-based systems, some sysctl settings
should be set (e.g. vm.max_map_count).

In some environments, changing sysctl settings plainly does not work;
previously a global environment variable named
ES_SKIP_SET_KERNEL_PARAMETERS was introduced to skip calling sysctl, but
this causes trouble for:
 - configuration management systems, which usually cannot apply an env
   var when running a package manager
 - package upgrades, which will not have the env var set any more, and
   thus leaving the package management system in a bad state (possibly
   half-way upgraded, can be very hard to recover)

This removes the env var again and instead of calling systemd-sysctl
manually, tells systemd to restart the wrapper unit - which itself can
be masked by system administrators or management tools if it is known
that sysctl does not work in a given environment.

The restart is not silent on systems in their default configuration, but
is ignored if the unit is masked.

Relates #24234
2017-06-06 10:44:41 -04:00
..
bwc Rework bwc snapshot projects to build up to two bwc versions (#24870) 2017-05-29 10:22:32 -04:00
deb Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
integ-test-zip Adds nodes usage API to monitor usages of actions (#24169) 2017-06-02 08:46:38 +01:00
rpm Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
src/main Honor masking of systemd-sysctl.service 2017-06-06 10:44:41 -04:00
tar Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
tools Remove import from InstallPluginCommandTests 2017-06-01 08:56:25 -04:00
zip Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
build.gradle Rework bwc snapshot projects to build up to two bwc versions (#24870) 2017-05-29 10:22:32 -04:00