]> git.pld-linux.org Git - packages/percona-server.git/blame - percona-server.logrotate
- builds and works (minor cleanups needed)
[packages/percona-server.git] / percona-server.logrotate
CommitLineData
4f1d5e55
ER
1# This section is used from mysqld.conf for logrotation.
2# Be sure that the password in config matches the actual one.
3#
4# ATTENTION: The mysqld.conf should be readable ONLY for *system* root!
7a0e0e17
ER
5#
6# [mysqladmin]
4f1d5e55 7# user = mysql_sysadmin
4fa89cc7 8# password = <secret>
7a0e0e17 9#
4fa89cc7 10# where "<secret>" is the password.
7a0e0e17 11#
4f1d5e55 12# You must do this for every active cluster defined in /etc/mysql/clusters.conf
7a0e0e17 13
0beb0def
AM
14/var/log/percona-server/query.log
15/var/log/percona-server/mysqld.log
16/var/log/percona-server/slow.log
17/var/log/percona-server/update*
f0d55a6c 18{
5087696e 19 olddir /var/log/archive/mysql
7a0e0e17 20 notifempty
613e8547 21 missingok
ea57d024 22 create 640 mysql mysql
0c4232c2 23 sharedscripts
84837ab6
ER
24
25 # NOTE:
26 # if you run the rotation less often than "daily" then the
27 # "expire-logs-days" mysqld server parameter may no longer work as you
28 # expect
29 daily
30
aecc7924 31 postrotate
82225fb1 32 /sbin/service mysql flush-logs
aecc7924 33 endscript
34}
This page took 0.055446 seconds and 4 git commands to generate.