Browse Source

Fix previous merge: 'kill -0' (check PID exists) was changed to 'kill -9',

meaning a '/etc/init.d/mysql stop' would actually cause mysqld_safe to
relaunch mysqld rather than shut it down.
pull/374/head
Jonathan Perkin 16 years ago
parent
commit
ed02cca13a
  1. 2
      support-files/mysql.server.sh

2
support-files/mysql.server.sh

@ -303,7 +303,7 @@ case "$mode" in
then
mysqld_pid=`cat "$mysqld_pid_file_path"`
if (kill -9 $mysqld_pid 2>/dev/null)
if (kill -0 $mysqld_pid 2>/dev/null)
then
echo $echo_n "Shutting down MySQL"
kill $mysqld_pid

Loading…
Cancel
Save