add restart by type

Change-Id: I6fda9ea54c8d647938dacb9f02276680ea074ddc