mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
make sure old mysqld's are shutdown
This commit is contained in:
@ -1543,14 +1543,17 @@ then
|
|||||||
then
|
then
|
||||||
# Ensure that no old mysqld test servers are running
|
# Ensure that no old mysqld test servers are running
|
||||||
$MYSQLADMIN --no-defaults --socket=$MASTER_MYSOCK -u root -O connect_timeout=5 -O shutdown_timeout=20 shutdown > /dev/null 2>&1
|
$MYSQLADMIN --no-defaults --socket=$MASTER_MYSOCK -u root -O connect_timeout=5 -O shutdown_timeout=20 shutdown > /dev/null 2>&1
|
||||||
|
$MYSQLADMIN --no-defaults --socket=$MASTER_MYSOCK1 -u root -O connect_timeout=5 -O shutdown_timeout=20 shutdown > /dev/null 2>&1
|
||||||
$MYSQLADMIN --no-defaults --socket=$SLAVE_MYSOCK -u root -O connect_timeout=5 -O shutdown_timeout=20 shutdown > /dev/null 2>&1
|
$MYSQLADMIN --no-defaults --socket=$SLAVE_MYSOCK -u root -O connect_timeout=5 -O shutdown_timeout=20 shutdown > /dev/null 2>&1
|
||||||
$MYSQLADMIN --no-defaults --host=$hostname --port=$MASTER_MYPORT -u root -O connect_timeout=5 -O shutdown_timeout=20 shutdown > /dev/null 2>&1
|
$MYSQLADMIN --no-defaults --host=$hostname --port=$MASTER_MYPORT -u root -O connect_timeout=5 -O shutdown_timeout=20 shutdown > /dev/null 2>&1
|
||||||
|
$MYSQLADMIN --no-defaults --host=$hostname --port=$MASTER_MYPORT1 -u root -O connect_timeout=5 -O shutdown_timeout=20 shutdown > /dev/null 2>&1
|
||||||
$MYSQLADMIN --no-defaults --host=$hostname --port=$SLAVE_MYPORT -u root -O connect_timeout=5 -O shutdown_timeout=20 shutdown > /dev/null 2>&1
|
$MYSQLADMIN --no-defaults --host=$hostname --port=$SLAVE_MYPORT -u root -O connect_timeout=5 -O shutdown_timeout=20 shutdown > /dev/null 2>&1
|
||||||
$MYSQLADMIN --no-defaults --host=$hostname --port=`expr $SLAVE_MYPORT + 1` -u root -O connect_timeout=5 -O shutdown_timeout=20 shutdown > /dev/null 2>&1
|
$MYSQLADMIN --no-defaults --host=$hostname --port=`expr $SLAVE_MYPORT + 1` -u root -O connect_timeout=5 -O shutdown_timeout=20 shutdown > /dev/null 2>&1
|
||||||
sleep_until_file_deleted 0 $MASTER_MYPID
|
sleep_until_file_deleted 0 $MASTER_MYPID
|
||||||
|
sleep_until_file_deleted 0 $MASTER_MYPID"1"
|
||||||
sleep_until_file_deleted 0 $SLAVE_MYPID
|
sleep_until_file_deleted 0 $SLAVE_MYPID
|
||||||
else
|
else
|
||||||
rm $MASTER_MYPID $SLAVE_MYPID
|
rm $MASTER_MYPID $MASTER_MYPID"1" $SLAVE_MYPID
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Kill any running managers
|
# Kill any running managers
|
||||||
|
Reference in New Issue
Block a user