#---------------------------------------------------------------------------- # Logrotate for MySQL 5.1.51 # # Creation: 2004-06-07 jv # Last Update: $Id$ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- /var/log/mysqld/5151/mysqld.log { # create 600 mysql mysql su mysql mysql notifempty daily rotate 3 missingok compress postrotate # just if mysqld is really running if /usr/lib/mysql/5151/bin/mysqladmin --socket=/run/mysql/5151/mysql.sock status &>/dev/null then /usr/lib/mysql/5151/bin/mysqladmin --socket=/run/mysql/5151/mysql.sock flush-logs fi endscript }