summaryrefslogtreecommitdiff
path: root/dev-db/mysql-init-scripts/files/logrotate.mysql
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/mysql-init-scripts/files/logrotate.mysql')
-rw-r--r--dev-db/mysql-init-scripts/files/logrotate.mysql15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-db/mysql-init-scripts/files/logrotate.mysql b/dev-db/mysql-init-scripts/files/logrotate.mysql
new file mode 100644
index 000000000000..2367d938c045
--- /dev/null
+++ b/dev-db/mysql-init-scripts/files/logrotate.mysql
@@ -0,0 +1,15 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+/var/log/mysql/mysql.err /var/log/mysql/mysql.log /var/log/mysql/mysqld.err {
+monthly
+create 660 mysql mysql
+notifempty
+size 5M
+sharedscripts
+missingok
+postrotate
+[ -f /var/run/mysqld/mysqld.pid ] && /bin/kill -HUP `cat /var/run/mysqld/mysqld.pid`
+endscript
+}