mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 20:11:42 +01:00
14 lines
322 B
PHP
14 lines
322 B
PHP
#
|
|
# This macro suspends the current node
|
|
#
|
|
|
|
--let _SUSPEND_NODE_PIDFILE = `SELECT @@pid_file`
|
|
--echo Suspending node ...
|
|
|
|
--perl
|
|
my $pid_filename = $ENV{'_SUSPEND_NODE_PIDFILE'};
|
|
my $mysqld_pid = `cat $pid_filename`;
|
|
chomp($mysqld_pid);
|
|
system("kill -19 $mysqld_pid");
|
|
exit(0);
|
|
EOF
|