converted logrotate handling to the new logrotate script