]> git.pld-linux.org Git - packages/mysql.git/commitdiff
invoke mysql rotation daily
authorElan Ruusamäe <glen@delfi.ee>
Sat, 17 Nov 2012 12:54:01 +0000 (12:54 +0000)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 17 Nov 2012 12:54:01 +0000 (12:54 +0000)
otherwise using "expire-logs-days" can't work as it has no source of
flush logs event

mysql.logrotate
mysql.spec

index 6a4f7c0852818bab21a2c1311ddcd8f7e6bcd72f..4bb78ceb9acd84287db5a16baef4e66400b9d1a3 100644 (file)
        missingok
        create 640 mysql mysql
        sharedscripts
+
+       # NOTE:
+       # if you run the rotation less often than "daily" then the
+       # "expire-logs-days" mysqld server parameter may no longer work as you
+       # expect
+       daily
+
        postrotate
                /sbin/service mysql flush-logs
        endscript
index 3c3b3402ae24248e0882e58d4aa0dd04df993cb0..7de93808998abfc925e38b3359cd29815c06a45e 100644 (file)
@@ -38,7 +38,7 @@ Summary(uk.UTF-8):    MySQL - швидкий SQL-сервер
 Summary(zh_CN.UTF-8):  MySQL数据库服务器
 Name:          mysql
 Version:       5.5.28
-Release:       1
+Release:       2
 License:       GPL + MySQL FLOSS Exception
 Group:         Applications/Databases
 # Source0Download: http://dev.mysql.com/downloads/mysql/5.5.html#downloads
This page took 0.047659 seconds and 4 git commands to generate.