update service resource.