added support for ipv6 in Ubuntu < 12

Instead of duplicating the service resource I would create a variable like $service_hasrestart and evaluate it accordingly. Also the matching on $osver_maj < 12 seems a bit error prone.