summaryrefslogtreecommitdiffstats
path: root/mysql-logrotate.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-07-06 15:57:22 +0200
committerRemi Collet <fedora@famillecollet.com>2012-07-06 15:57:22 +0200
commit810ddd3e6fead61410e42731827877fcb88361dd (patch)
treea9cc798765a60bcb696aaee95aa6dd0762447167 /mysql-logrotate.patch
parentede69b7ddd6158b84eb535b3d85665db812641e4 (diff)
MySQL 5.5.25a
Diffstat (limited to 'mysql-logrotate.patch')
-rw-r--r--mysql-logrotate.patch5
1 files changed, 3 insertions, 2 deletions
diff --git a/mysql-logrotate.patch b/mysql-logrotate.patch
index 8ad9d2c..f76237d 100644
--- a/mysql-logrotate.patch
+++ b/mysql-logrotate.patch
@@ -2,7 +2,8 @@ Adjust the mysql-log-rotate script in several ways:
* Use the correct log file pathname for Red Hat installations.
* Enable creation of the log file by logrotate (needed since
- /var/log/ isn't writable by mysql user).
+ /var/log/ isn't writable by mysql user); and set the same 640
+ permissions we normally use.
* Comment out the actual rotation commands, so that user must edit
the file to enable rotation. This is unfortunate, but the fact
that the script will probably fail without manual configuration
@@ -48,7 +49,7 @@ diff -Naur mysql-5.5.22.orig/support-files/mysql-log-rotate.sh mysql-5.5.22/supp
+# Then, un-comment the following lines to enable rotation of mysql's log file:
+
+#/var/log/mysqld.log {
-+# create 600 mysql mysql
++# create 640 mysql mysql
+# notifempty
+# daily
+# rotate 3