Comment 3 for bug 1025536

Revision history for this message
Valerii Kravchuk (valerii-kravchuk) wrote :

In both current 5.1 and 5.5 branches of percona-server mysql-log-rotate script looks like the following:

...
/home/openxs/dbs/p5.5/data/mysqld.log {
        # create 600 mysql mysql
        notifempty
        daily
        rotate 3
        missingok
        compress
    postrotate
        # just if mysqld is really running
        if test -x /home/openxs/dbs/p5.5/bin/mysqladmin && \
           /home/openxs/dbs/p5.5/bin/mysqladmin ping &>/dev/null
        then
           /home/openxs/dbs/p5.5/bin/mysqladmin flush-logs
        fi
    endscript
}

So, no prerotate checks are made and some of concerns expressed in the last comment looks still valid.