Skip to content

Commit d456e44

Browse files
author
Jonathan Perkin
committed
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.
1 parent a7073e5 commit d456e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

support-files/mysql.server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ case "$mode" in
303303
then
304304
mysqld_pid=`cat "$mysqld_pid_file_path"`
305305

306-
if (kill -9 $mysqld_pid 2>/dev/null)
306+
if (kill -0 $mysqld_pid 2>/dev/null)
307307
then
308308
echo $echo_n "Shutting down MySQL"
309309
kill $mysqld_pid

0 commit comments

Comments
 (0)