modify control scripts for restarts