summaryrefslogtreecommitdiff
path: root/support-files
diff options
context:
space:
mode:
authorunknown <lenz@mysql.com>2005-01-20 12:21:10 +0100
committerunknown <lenz@mysql.com>2005-01-20 12:21:10 +0100
commit2ac6a8f757dfb531c4265ea851d54de13c5a0c5f (patch)
tree4ac030a8195fc08d2120ffe0cfa1cf8a918f94ab /support-files
parent0a91d24f454be87af98804d408cac063ebf6f375 (diff)
parent933d80d4ffb826f83c3e4069e2afb0eca6c66bee (diff)
downloadmariadb-git-2ac6a8f757dfb531c4265ea851d54de13c5a0c5f.tar.gz
Merge mysql.com:/space/my/mysql-4.1 into mysql.com:/space/my/mysql-5.0
Diffstat (limited to 'support-files')
-rw-r--r--support-files/mysql-log-rotate.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/support-files/mysql-log-rotate.sh b/support-files/mysql-log-rotate.sh
index a1153c66f40..0ee78b0f7ca 100644
--- a/support-files/mysql-log-rotate.sh
+++ b/support-files/mysql-log-rotate.sh
@@ -1,4 +1,9 @@
-# This logname is set in mysql.server.sh that ends up in /etc/rc.d/init.d/mysql
+# This logname can be set in /etc/my.cnf
+# by setting the variable "err-log"
+# in the [safe_mysqld] section as follows:
+#
+# [safe_mysqld]
+# err-log=@localstatedir@/mysqld.log
#
# If the root user has a password you have to create a
# /root/.my.cnf configuration file with the following
@@ -22,8 +27,10 @@
compress
postrotate
# just if mysqld is really running
- if test -n "`ps acx|grep mysqld`"; then
- @bindir@/mysqladmin flush-logs
+ if test -x @bindir@/mysqladmin && \
+ @bindir@/mysqladmin ping &>/dev/null
+ then
+ @bindir@/mysqladmin flush-logs
fi
endscript
}