diff --git a/sled-agent/src/services.rs b/sled-agent/src/services.rs index 69fc0042ef..c680e435c0 100644 --- a/sled-agent/src/services.rs +++ b/sled-agent/src/services.rs @@ -244,76 +244,6 @@ impl ServiceManager { let smf_name = format!("svc:/system/illumos/{}", service.name); let default_smf_name = format!("{}:default", smf_name); - match service.name.as_str() { - "internal-dns" => { - info!(self.log, "Setting up internal-dns service"); - let address = - service.addresses.get(0).ok_or_else(|| { - Error::BadServiceRequest { - service: service.name.clone(), - message: "Not enough addresses".to_string(), - } - })?; - running_zone - .run_cmd(&[ - crate::illumos::zone::SVCCFG, - "-s", - &smf_name, - "setprop", - &format!( - "config/server_address=[{}]:{}", - address, DNS_SERVER_PORT - ), - ]) - .map_err(|err| Error::ZoneCommand { - intent: "set server address".to_string(), - err, - })?; - - running_zone - .run_cmd(&[ - crate::illumos::zone::SVCCFG, - "-s", - &smf_name, - "setprop", - &format!( - "config/dns_address=[{}]:{}", - address, DNS_PORT - ), - ]) - .map_err(|err| Error::ZoneCommand { - intent: "Set DNS address".to_string(), - err, - })?; - - // Refresh the manifest with the new properties we set, - // so they become "effective" properties when the service is enabled. - running_zone - .run_cmd(&[ - crate::illumos::zone::SVCCFG, - "-s", - &default_smf_name, - "refresh", - ]) - .map_err(|err| Error::ZoneCommand { - intent: format!( - "Refresh SMF manifest {}", - default_smf_name - ), - err, - })?; - } - _ => { - info!( - self.log, - "Service name {} did not match", service.name - ); - } - } - - let smf_name = format!("svc:/system/illumos/{}", service.name); - let default_smf_name = format!("{}:default", smf_name); - match service.name.as_str() { "internal-dns" => { info!(self.log, "Setting up internal-dns service");