aws / amazon-ssm-agent

An agent to enable remote management of your EC2 instances, on-premises servers, or virtual machines (VMs).
https://aws.amazon.com/systems-manager/
Apache License 2.0
1.04k stars 323 forks source link

Error from cronjob #333

Closed leonblueconic closed 3 years ago

leonblueconic commented 3 years ago

During the last few releases the cronjob which gets installed in /etc/cron.d/awsagent-update contains the following: rm /var/log/awsagent-update.log

On startup with a new instance this gives us the following error message in a mail from cron: rm: cannot remove '/var/log/awsagent-update.log': No such file or directory

Can the command be changed to rm -f .. so it no longer errors on the missing file?

VishnuKarthikRavindran commented 3 years ago

Thanks for reaching us. We have assigned this issue to the concerned team. Will post in this thread if we have an update.

ferkhat-aws commented 3 years ago

Closing as this is not related to SSM Agent.