modified logroate.d/mysql