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.
In both current 5.1 and 5.5 branches of percona-server mysql-log-rotate script looks like the following:
... dbs/p5. 5/data/ mysqld. log { dbs/p5. 5/bin/mysqladmi n && \
/home/ openxs/ dbs/p5. 5/bin/mysqladmi n ping &>/dev/null
/home/ openxs/ dbs/p5. 5/bin/mysqladmi n flush-logs
/home/openxs/
# create 600 mysql mysql
notifempty
daily
rotate 3
missingok
compress
postrotate
# just if mysqld is really running
if test -x /home/openxs/
then
fi
endscript
}
So, no prerotate checks are made and some of concerns expressed in the last comment looks still valid.