restart功能实现