Fix service restart for Ubuntu >=12.04