Added log rotation functionality to the update daemon monitoring script