#At file:///Users/df/bzr/mysql-5.1-build/ based on
revid:jperkin@stripped
2952 Daniel Fischer 2009-07-02
merge patch for bug#31785
modified:
support-files/mysql.server.sh
=== modified file 'support-files/mysql.server.sh'
--- a/support-files/mysql.server.sh 2008-03-26 16:39:22 +0000
+++ b/support-files/mysql.server.sh 2009-07-02 13:18:12 +0000
@@ -358,11 +358,18 @@ case "$mode" in
if test -s "$pid_file"
then
mysqlmanager_pid=`cat $pid_file`
- echo $echo_n "Shutting down MySQL"
- kill $mysqlmanager_pid
- # mysqlmanager should remove the pid_file when it exits, so wait for it.
- wait_for_pid removed "$mysqlmanager_pid"; return_value=$?
-
+
+ if (kill -0 $mysqlmanager_pid 2>/dev/null)
+ then
+ echo $echo_n "Shutting down MySQL"
+ kill $mysqlmanager_pid
+ # mysqlmanager should remove the pid_file when it exits, so wait for it.
+ wait_for_pid removed "$mysqlmanager_pid"; return_value=$?
+ else
+ log_failure_msg "MySQL manager or server process #$mysqlmanager_pid is not
running!"
+ rm $pid_file
+ fi
+
# delete lock for RedHat / SuSE
if test -f $lock_dir
then
Attachment: [text/bzr-bundle] bzr/df@sun.com-20090702131812-0izbx178sipz9efm.bundle
| Thread |
|---|
| • bzr commit into mysql-5.1 branch (df:2952) Bug#31785 | Daniel Fischer | 2 Jul 2009 |