mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 04:52:59 +02:00
amazon-ssm-agent: Allow to overcommit memory
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
229a6dffd7
commit
0c466599d0
@@ -33,7 +33,7 @@ DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
PROG = amazon-ssm-agent
|
||||
PAK_VER = 2
|
||||
PAK_VER = 3
|
||||
|
||||
DEPS =
|
||||
|
||||
|
||||
@@ -13,6 +13,12 @@ case "${1}" in
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Allow the kernel to overcommit memory.
|
||||
# The SSM agent fails to clone() itself when there is
|
||||
# "not enough memory" available. This simply seems to
|
||||
# fail no matter how much free memory is available.
|
||||
echo 1 > /proc/sys/vm/overcommit_memory
|
||||
|
||||
boot_mesg "Starting Amazon SSM Agent..."
|
||||
/usr/bin/amazon-ssm-agent &>/dev/null &
|
||||
evaluate_retval
|
||||
|
||||
Reference in New Issue
Block a user