Sha256: 261c47ba22bd348c90a8cf0210e6c3a2a4944311360100d6861ccc1f341d1aa1

Contents?: true

Size: 360 Bytes

Versions: 7

Compression:

Stored size: 360 Bytes

Contents

cat > /etc/init/awslogs.conf <<- EOL
#upstart-job
description "Configure and start CloudWatch Logs agent EC2 instance"
author "Tung Nguyen"
start on startup

script
  exec 2>>/var/log/cloudwatch-logs-start.log
  set -x

  service awslogs start
  chkconfig awslogs on
end script
EOL

initctl list
initctl reload-configuration
initctl start awslogs
initctl list

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
aws-ec2-1.3.2 lib/aws_ec2/scripts/cloudwatch/service.sh
aws-ec2-1.3.1 lib/aws_ec2/scripts/cloudwatch/service.sh
aws-ec2-1.3.0 lib/aws_ec2/scripts/cloudwatch/service.sh
aws-ec2-1.2.2 lib/aws_ec2/scripts/cloudwatch/service.sh
aws-ec2-1.2.1 lib/aws_ec2/scripts/cloudwatch/service.sh
aws-ec2-1.2.0 lib/aws_ec2/scripts/cloudwatch/service.sh
aws-ec2-1.1.0 lib/aws_ec2/scripts/cloudwatch/service.sh