summaryrefslogtreecommitdiff
path: root/dev-db/mysql-init-scripts/files/logrotate.mysql-2.3
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-03-19 11:37:34 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-03-19 11:37:34 +0000
commitb7b97785ebbb2f11d24d14dab8b81ed274f4ce6a (patch)
tree9fd110f9fc996e8a4213eeda994a8c112491b86d /dev-db/mysql-init-scripts/files/logrotate.mysql-2.3
parent066d27181e9a797ad9f8fc43b49fc9a10ff2f707 (diff)
gentoo resync : 19.03.2019
Diffstat (limited to 'dev-db/mysql-init-scripts/files/logrotate.mysql-2.3')
-rw-r--r--dev-db/mysql-init-scripts/files/logrotate.mysql-2.314
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-db/mysql-init-scripts/files/logrotate.mysql-2.3 b/dev-db/mysql-init-scripts/files/logrotate.mysql-2.3
new file mode 100644
index 000000000000..6a3b9eeb2ca9
--- /dev/null
+++ b/dev-db/mysql-init-scripts/files/logrotate.mysql-2.3
@@ -0,0 +1,14 @@
+# Copyright 1999-2019 Gentoo Authors
+# 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
+ /bin/kill -HUP $(cat $(my_print_defaults server mysqld mariadb | grep 'pid[_-]file' | cut -d = -f 2))
+endscript
+}