#At file:///home/nirbhay/Project/mysql/repo/bugs/mysql-trunk.61038/ based on revid:inaam.rana@stripped
3222 Nirbhay Choubey 2011-06-24
Bug#12546842 - 61038: LOGROTATE SCRIPT IN SUPPORT-FILES
NEEDS AN UPDATE.
Updated script and option names which got changed long
back and are not valid now, along with some modifications
in comments.
@ support-files/mysql-log-rotate.sh
Bug 12546842 - 61038: LOGROTATE SCRIPT IN SUPPORT-FILES
NEEDS AN UPDATE.
Modified script name, option and comments.
modified:
support-files/mysql-log-rotate.sh
=== modified file 'support-files/mysql-log-rotate.sh'
--- a/support-files/mysql-log-rotate.sh 2005-01-18 16:35:32 +0000
+++ b/support-files/mysql-log-rotate.sh 2011-06-24 11:43:15 +0000
@@ -1,13 +1,14 @@
-# This logname can be set in /etc/my.cnf
-# by setting the variable "err-log"
-# in the [safe_mysqld] section as follows:
+# The log file name and location can be set in
+# /etc/my.cnf by setting the "log-error" option
+# in either [mysqld] or [mysqld_safe] section as
+# follows:
#
-# [safe_mysqld]
-# err-log=@localstatedir@/mysqld.log
+# [mysqld]
+# log-error=@localstatedir@/mysqld.log
#
-# If the root user has a password you have to create a
-# /root/.my.cnf configuration file with the following
-# content:
+# In case the root user has a password, then you
+# have to create a /root/.my.cnf configuration file
+# with the following content:
#
# [mysqladmin]
# password = <secret>
@@ -15,14 +16,14 @@
#
# where "<secret>" is the password.
#
-# ATTENTION: This /root/.my.cnf should be readable ONLY
-# for root !
+# ATTENTION: The /root/.my.cnf file should be readable
+# _ONLY_ by root !
@localstatedir@/mysqld.log {
# create 600 mysql mysql
notifempty
- daily
- rotate 3
+ daily
+ rotate 5
missingok
compress
postrotate
Attachment: [text/bzr-bundle] bzr/nirbhay.choubey@oracle.com-20110624114315-qgjuuigucmhowjh8.bundle
| Thread |
|---|
| • bzr commit into mysql-trunk branch (nirbhay.choubey:3222) Bug#12546842 | Nirbhay Choubey | 25 Jun |