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.mysql14
1 files changed, 14 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..afb20c66d479
--- /dev/null
+++ b/dev-db/mysql-init-scripts/files/logrotate.mysql
@@ -0,0 +1,14 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+/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
+}