You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our docs claim that we set vm.max_map_count automatically. This is not
quite the case. The story is that on SysV init we set vm.max_map_count
each time the service starts, which is good. On systemd, we create a
sysctl.d conf file that sets vm.map_max_count, but this is only
meaningful if the system is rebooted after package install. This commit
modifies the post-install script so that we run systemd-sysctl so that
the vm.max_map_count change occurs after package install without a
reboot.
Relates #21507
Copy file name to clipboardExpand all lines: distribution/src/main/packaging/scripts/postinst
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,11 @@ case "$1" in
51
51
;;
52
52
esac
53
53
54
+
# to pick up /usr/lib/sysctl.d/elasticsearch.conf
55
+
if command -v /usr/lib/systemd/systemd-sysctl > /dev/null; then
56
+
/usr/lib/systemd/systemd-sysctl
57
+
fi
58
+
54
59
if [ "x$IS_UPGRADE" != "xtrue" ]; then
55
60
if command -v systemctl >/dev/null; then
56
61
echo "### NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using systemd"
0 commit comments