031387
Adjust the mysql-log-rotate script in several ways:
031387
031387
* Use the correct log file pathname for Red Hat installations.
031387
* Enable creation of the log file by logrotate (needed since
031387
  /var/log/ isn't writable by mysql user); and set the same 640
031387
  permissions we normally use.
031387
* Comment out the actual rotation commands, so that user must edit
031387
  the file to enable rotation.  This is unfortunate, but the fact
031387
  that the script will probably fail without manual configuration
031387
  (to set a root password) means that we can't really have it turned
031387
  on by default.  Fortunately, in most configurations the log file
031387
  is low-volume and so rotation is not critical functionality.
031387
031387
See discussions at RH bugs 799735, 547007
031387
031387
031387
diff -up mariadb-5.5.32/support-files/mysql-log-rotate.sh.errlog mariadb-5.5.32/support-files/mysql-log-rotate.sh
031387
--- mariadb-5.5.32/support-files/mysql-log-rotate.sh.errlog	2013-08-29 14:35:34.839119044 +0200
031387
+++ mariadb-5.5.32/support-files/mysql-log-rotate.sh	2013-08-29 14:38:54.203996083 +0200
4284b5
@@ -3,7 +3,7 @@
4284b5
 # in the [mysqld] section as follows:
031387
 #
4284b5
 # [mysqld]
4284b5
-# log-error=@localstatedir@/mysqld.log
031387
+# log-error=/var/log/mariadb/mariadb.log
031387
 #
031387
 # If the root user has a password you have to create a
031387
 # /root/.my.cnf configuration file with the following
4284b5
@@ -18,19 +18,19 @@
031387
 # ATTENTION: This /root/.my.cnf should be readable ONLY
031387
 # for root !
031387
 
031387
-@localstatedir@/mysqld.log {
031387
-        # create 600 mysql mysql
031387
-        notifempty
4284b5
-        daily
031387
-        rotate 3
031387
-        missingok
031387
-        compress
031387
-    postrotate
031387
-	# just if mysqld is really running
031387
-	if test -x @bindir@/mysqladmin && \
031387
-	   @bindir@/mysqladmin ping &>/dev/null
031387
-	then
031387
-	   @bindir@/mysqladmin flush-logs
031387
-	fi
031387
-    endscript
031387
-}
031387
+#/var/log/mariadb/mariadb.log {
031387
+#        create 640 mysql mysql
031387
+#        notifempty
4284b5
+#        daily
031387
+#        rotate 3
031387
+#        missingok
031387
+#        compress
031387
+#    postrotate
031387
+#	# just if mysqld is really running
031387
+#	if test -x @bindir@/mysqladmin && \
031387
+#	   @bindir@/mysqladmin ping &>/dev/null
031387
+#	then
031387
+#	   @bindir@/mysqladmin flush-logs
031387
+#	fi
031387
+#    endscript
031387
+#}