The auto restart script