fix scheduled restart service.