3 # Shut down and shut up the server given by $rpl_server_number. This
4 # is equivalent to rpl_stop_server.inc followed by rpl_start_server.inc
8 # --let $rpl_server_number= N
9 # [--let $rpl_start_with_gtids= 1]
10 # [--let $rpl_server_parameters= --flag1 --flag2 ...]
11 # [--let $rpl_omit_print_server_parameters= 0]
12 # [--let $rpl_debug= 1]
13 # --source include/rpl_restart_server.inc
17 # $rpl_server_number, $rpl_start_with_gtids, $rpl_server_parameters,
18 # $rpl_omit_print_server_parameters
19 # See include/rpl_start_server.inc
22 # See include/rpl_init.inc
26 # rpl_start_server.inc
30 --let $_rpl_restart_server_args= server_number=$rpl_server_number
31 if ($rpl_start_with_gtids)
33 --let $_rpl_restart_server_args= $_rpl_restart_server_args gtids=on
35 if ($rpl_server_parameters)
37 if (!$rpl_omit_print_server_parameters)
39 --let $_rpl_restart_server_args= $_rpl_restart_server_args parameters: $rpl_server_parameters
42 --let $include_filename= rpl_restart_server.inc [$_rpl_restart_server_args]
43 --source include/begin_include_file.inc
45 --source include/rpl_stop_server.inc
46 --source include/rpl_start_server.inc
48 --let $include_filename= rpl_restart_server.inc [$_rpl_restart_server_args]
49 --source include/end_include_file.inc