Fix restart service for Ubuntu platform