percona-server: use mysqladmin to shutdown properly
using Process.kill() is only just shutdown mysqld, but not mysqld_safe altogether. Signed-off-by: Jaehoon You <teslamint@gmail.com>
This commit is contained in:
parent
c29c63255c
commit
8676ee2022
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ class PerconaServer < Formula
|
|||
sleep 1
|
||||
system "#{bin}/mysql", "--verbose", "--port=3307", "--user=root", "--execute=source #{testpath/"mysql_test.sql"}"
|
||||
ensure
|
||||
Process.kill "SIGTERM", pid
|
||||
system "#{bin}/mysqladmin", "shutdown", "--user=root", "--port=3307"
|
||||
Process.wait pid
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue