1# ==== Purpose ==== 2# 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 5# 6# ==== Usage ==== 7# 8# --let $rpl_server_number= N 9# [--let $rpl_start_with_gtids= [0|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 14# 15# Parameters: 16# 17# $rpl_server_number, $rpl_start_with_gtids, $rpl_server_parameters, 18# $rpl_omit_print_server_parameters 19# See include/rpl_start_server.inc 20# 21# $rpl_debug 22# See include/rpl_init.inc 23# 24# ==== See also ==== 25# 26# rpl_start_server.inc 27# rpl_stop_server.inc 28 29 30--let $_rpl_restart_server_args= server_number=$rpl_server_number 31if ($rpl_start_with_gtids == 1) 32{ 33 --let $_rpl_restart_server_args= $_rpl_restart_server_args gtids=on 34} 35if ($rpl_start_with_gtids == 0) 36{ 37 --let $_rpl_restart_server_args= $_rpl_restart_server_args gtids=off 38} 39if ($rpl_server_parameters) 40{ 41 if (!$rpl_omit_print_server_parameters) 42 { 43 --let $_rpl_restart_server_args= $_rpl_restart_server_args parameters: $rpl_server_parameters 44 } 45} 46--let $include_filename= rpl_restart_server.inc [$_rpl_restart_server_args] 47--source include/begin_include_file.inc 48 49--source include/rpl_stop_server.inc 50--source include/rpl_start_server.inc 51 52--let $include_filename= rpl_restart_server.inc [$_rpl_restart_server_args] 53--source include/end_include_file.inc 54