~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/include/restart_mysqld.inc

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# Write file to make mysql-test-run.pl expect the "crash", but don't start
 
3
# it until it's told to
 
4
--write_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
 
5
wait
 
6
EOF
 
7
 
 
8
# Send shutdown to the connected server and give
 
9
# it 10 seconds to die before zapping it
 
10
shutdown_server 10;
 
11
 
 
12
# Write file to make mysql-test-run.pl start up the server again
 
13
--append_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
 
14
restart
 
15
EOF
 
16
 
 
17
# Turn on reconnect
 
18
--enable_reconnect
 
19
 
 
20
# Call script that will poll the server waiting for it to be back online again
 
21
--source include/wait_until_connected_again.inc
 
22
 
 
23
# Turn off reconnect again
 
24
--disable_reconnect
 
25