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:
Jaehoon You 2017-06-09 23:31:28 +09:00 committed by Alex Dunn
parent c29c63255c
commit 8676ee2022

View file

@ -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