Manual:WaitForSlave.php

Details
WaitForSlave.php is a maintenance script to wait until slave lag goes under a certain value.