mysqlのログローテート

今さらだけど。FLUSH LOGSすればいいんだろうけど、定期的にローテートするにはlogrotateでmysqladmin flush-logsでいい?

/var/log/mysql/*.log {
  notifempty
  sharedscripts
  postrotate
    /usr/local/mysql/bin/mysqladmin flush-logs 2> /dev/null || true
  endscript
}