add service_name into the case statement of osfamily