]> git.pld-linux.org Git - packages/mysql.git/commitdiff
- added mysqladmin mysqld.conf usage to flush the logs
authormis <mis@pld-linux.org>
Thu, 17 Aug 2000 09:29:53 +0000 (09:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- more logs

Changed files:
    mysql.logrotate -> 1.5

mysql.logrotate

index 6abf3d3a0a5550beba174f79474a67f3025959ce..c9956d6b8ff5ea49cd0126fd5dd7acbffcf182a4 100644 (file)
@@ -1,6 +1,40 @@
-/var/log/mysqld.log {
+/var/log/mysql/err {
+        notifempty
        create 640 mysql mysql
+        prerotate
+               /usr/bin/mysqladmin --defaults-file=$MYSQLD_CONFIG flush-logs
+       endscript
+
+       postrotate
+               /usr/bin/mysqladmin --defaults-file=$MYSQLD_CONFIG flush-logs
+       endscript
+}
+
+/var/log/mysql/log {
+        notifempty
+       missingok
+       create 640 mysql mysql
+
+        prerotate
+               /usr/bin/mysqladmin --defaults-file=$MYSQLD_CONFIG flush-logs
+       endscript
+
+       postrotate
+               /usr/bin/mysqladmin --defaults-file=$MYSQLD_CONFIG flush-logs
+       endscript
+}
+
+/var/log/mysql/isamlog {
+        notifempty
+       missingok
+       create 640 mysql mysql
+
+        prerotate
+               /usr/bin/mysqladmin --defaults-file=$MYSQLD_CONFIG flush-logs
+       endscript
+
        postrotate
-               /usr/bin/mysqladmin flush-logs
+               /usr/bin/mysqladmin --defaults-file=$MYSQLD_CONFIG flush-logs
        endscript
 }
+
This page took 0.032892 seconds and 4 git commands to generate.