]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/packages/amazon-ssm-agent
eeaa7b7e5c966bfb0001df17d330295059faa2bb
2 ########################################################################
3 # Begin $rc_base/init.d/amazon-ssm-agent
4 ########################################################################
11 # Do not launch the agent when we are not running on EC2
12 if ! running_on_ec2
; then
16 # Allow the kernel to overcommit memory.
17 # The SSM agent fails to clone() itself when there is
18 # "not enough memory" available. This simply seems to
19 # fail no matter how much free memory is available.
20 echo 1 > /proc
/sys
/vm
/overcommit_memory
22 boot_mesg
"Starting Amazon SSM Agent..."
23 /usr
/bin
/amazon-ssm-agent
&>/dev
/null
&
28 boot_mesg
"Stopping Amazon SSM Agent..."
29 killproc
/usr
/bin
/amazon-ssm-agent
39 statusproc
/usr
/bin
/amazon-ssm-agent
43 echo "Usage: ${0} {start|stop|restart|status}"
48 # End $rc_base/init.d/amazon-ssm-agent