[packages/mysql] invoke mysql rotation daily

glen glen at pld-linux.org
Sat Nov 17 13:55:25 CET 2012


commit 84837ab6139e59e53a311abec8da382cb41a8d02
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Nov 17 12:54:01 2012 +0000

    invoke mysql rotation daily
    
    otherwise using "expire-logs-days" can't work as it has no source of
    flush logs event

 mysql.logrotate | 7 +++++++
 mysql.spec      | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/mysql.spec b/mysql.spec
index 3c3b340..7de9380 100644
--- a/mysql.spec
+++ b/mysql.spec
@@ -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
diff --git a/mysql.logrotate b/mysql.logrotate
index 6a4f7c0..4bb78ce 100644
--- a/mysql.logrotate
+++ b/mysql.logrotate
@@ -21,6 +21,13 @@
 	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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mysql.git/commitdiff/288d6415de974d83a192d4cae8c740f863e97e5e



More information about the pld-cvs-commit mailing list