amazon-ssm-agent: New package

AWS Systems Manager Agent (SSM Agent) is Amazon software that can be
installed and configured on an Amazon EC2 instance, an on-premises
server, or a virtual machine (VM). SSM Agent makes it possible for
Systems Manager to update, manage, and configure these resources. The
agent processes requests from the Systems Manager service in the AWS
Cloud, and then runs them as specified in the request. SSM Agent then
sends status and execution information back to the Systems Manager
service by using the Amazon Message Delivery Service.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Michael Tremer
2019-12-24 12:58:52 +00:00
committed by Arne Fitzenreiter
parent 590f879b34
commit 44cc9a3d57
8 changed files with 273 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
#!/bin/sh
########################################################################
# Begin $rc_base/init.d/amazon-ssm-agent
########################################################################
. /etc/sysconfig/rc
. ${rc_functions}
case "${1}" in
start)
# Do not launch the agent when we are not running on EC2
if ! running_on_ec2; then
exit 0
fi
boot_mesg "Starting Amazon SSM Agent..."
/usr/bin/amazon-ssm-agent &>/dev/null &
evaluate_retval
;;
stop)
boot_mesg "Stopping Amazon SSM Agent..."
killproc /usr/bin/amazon-ssm-agent
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
statusproc /usr/bin/amazon-ssm-agent
;;
*)
echo "Usage: ${0} {start|stop|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/amazon-ssm-agent