changed the case statement to split out ubuntu from debian because they have different service names