Prepare for logrotation.