]> git.pld-linux.org Git - packages/mysql.git/blobdiff - mysql.logrotate
- 4.1.21
[packages/mysql.git] / mysql.logrotate
index d953b89464cf12ad0143fa5d12b5edcbc0e57487..382aa5cdf0818b44358283e9edadde66c6713b0f 100644 (file)
@@ -1,43 +1,21 @@
-/var/log/mysql/err {
+# If the *mysql* root user has a password you have to set it in mysqld.conf
+#
+# [mysqladmin]
+# user = mysql_logrotate
+# password = <secret>
+#
+# where "<secret>" is the password.
+#
+# You must do this for every cluster defined in /etc/mysql/clusters.conf
+#
+# ATTENTION: The mysqld.conf should be readable ONLY for *system* root!
+
+/var/log/mysql/log /var/log/mysql/isamlog.log /var/log/mysql/update* {
        olddir /var/log/archiv/mysql
-        notifempty
+       notifempty
        create 640 mysql mysql
-        prerotate
-               /usr/bin/mysqladmin --defaults-file=/etc/mysqld.conf flush-logs
-       endscript
-
-       postrotate
-               /usr/bin/mysqladmin --defaults-file=/etc/mysqld.conf flush-logs
-       endscript
-}
-
-/var/log/mysql/log {
-       olddir /var/log/archiv/mysql
-        notifempty
-       missingok
-       create 640 mysql mysql
-
-        prerotate
-               /usr/bin/mysqladmin --defaults-file=/etc/mysqld.conf flush-logs
-       endscript
-
+       sharedscripts
        postrotate
-               /usr/bin/mysqladmin --defaults-file=/etc/mysqld.conf flush-logs
+               /etc/rc.d/init.d/mysql flush-logs
        endscript
 }
-
-/var/log/mysql/isamlog {
-       olddir /var/log/archiv/mysql
-        notifempty
-       missingok
-       create 640 mysql mysql
-
-        prerotate
-               /usr/bin/mysqladmin --defaults-file=/etc/mysqld.conf flush-logs
-       endscript
-
-       postrotate
-               /usr/bin/mysqladmin --defaults-file=/etc/mysqld.conf flush-logs
-       endscript
-}
-
This page took 0.026857 seconds and 4 git commands to generate.