add the scripts for restart.