X-Git-Url: https://git.tld-linux.org/?p=packages%2Fmysql.git;a=blobdiff_plain;f=mysql.logrotate;fp=mysql.logrotate;h=1de8f496ef2fbc3545c746d39ad374b87174dbbc;hp=26a4e694eb257789b81ea8bac3c49d488ae55e8e;hb=c8d45f00238c098b5c188d500203d0ecf21558e9;hpb=dd8112c2b70a7d6107e3276a3339d6ad870d349b diff --git a/mysql.logrotate b/mysql.logrotate index 26a4e69..1de8f49 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{MYSQL_MAJOR}/query.log -/var/log/mysql{MYSQL_MAJOR}/mysqld.log -/var/log/mysql{MYSQL_MAJOR}/slow.log -/var/log/mysql{MYSQL_MAJOR}/update* +/var/log/mysql/@mysqlversion@/query.log +/var/log/mysql/@mysqlversion@/mysqld.log +/var/log/mysql/@mysqlversion@/slow.log +/var/log/mysql/@mysqlversion@/update* { - olddir /var/log/archive/mysql{MYSQL_MAJOR} + olddir /var/log/archive/mysql/@mysqlversion@ notifempty missingok create 640 mysql mysql @@ -29,6 +29,6 @@ daily postrotate - /sbin/service mysql{MYSQL_MAJOR} flush-logs + /sbin/service mysql-@mysqlversion@ flush-logs endscript }