X-Git-Url: https://git.tld-linux.org/?p=packages%2Fmysql.git;a=blobdiff_plain;f=mysql.logrotate;fp=mysql.logrotate;h=26a4e694eb257789b81ea8bac3c49d488ae55e8e;hp=4bb78ceb9acd84287db5a16baef4e66400b9d1a3;hb=6d4f90321faeda56bdcd443d4f9054776bd9cfcf;hpb=da608bb7673207e574610ab4ceae97a34615966c diff --git a/mysql.logrotate b/mysql.logrotate index 4bb78ce..26a4e69 100644 --- a/mysql.logrotate +++ b/mysql.logrotate @@ -11,12 +11,12 @@ # # You must do this for every active cluster defined in /etc/mysql/clusters.conf -/var/log/mysql/query.log -/var/log/mysql/mysqld.log -/var/log/mysql/slow.log -/var/log/mysql/update* +/var/log/mysql{MYSQL_MAJOR}/query.log +/var/log/mysql{MYSQL_MAJOR}/mysqld.log +/var/log/mysql{MYSQL_MAJOR}/slow.log +/var/log/mysql{MYSQL_MAJOR}/update* { - olddir /var/log/archive/mysql + olddir /var/log/archive/mysql{MYSQL_MAJOR} notifempty missingok create 640 mysql mysql @@ -29,6 +29,6 @@ daily postrotate - /sbin/service mysql flush-logs + /sbin/service mysql{MYSQL_MAJOR} flush-logs endscript }