lib/aws_ec2/scripts/cloudwatch/service/ubuntu.sh in aws-ec2-1.4.5 vs lib/aws_ec2/scripts/cloudwatch/service/ubuntu.sh in aws-ec2-1.4.6
- old
+ new
@@ -1,10 +1,7 @@
#/bin/bash -exu
-# Interestingly, the awslogs-agent-setup.py command in the install.sh script
-# already sets up systemd.
-# With the yum awslogs-agent-setup.py setup, the systemd is called awslogs
-
-# We just have to reload and restart it since we reconfigured it
+# The awslogs-agent-setup.py setup creates a systemd unit is called awslogs.
systemctl daemon-reload
systemctl restart awslogs
+systemctl enable awslogs
# systemctl status awslogs