lib/aws_ec2/scripts/cloudwatch/service/amazonlinux2.sh in aws-ec2-1.4.5 vs lib/aws_ec2/scripts/cloudwatch/service/amazonlinux2.sh in aws-ec2-1.4.6
- old
+ new
@@ -1,8 +1,10 @@
#!/bin/bash -exu
# yum install already has configured
# /usr/lib/systemd/system/awslogsd.service
# Restart because we adjust the config with configure.sh
+# The yum awslogs package creates a systemd unit called awslogsd.
systemctl daemon-reload
-systemctl restart awslogsd # with the yum awslogs package the systemd is called awslogsd
+systemctl restart awslogsd
+systemctl enable awslogsd
# systemctl status awslogsd