Is there a way to reregister a service to consul after consul is down and up again?

Hello

I want to ask if I can reregister my Service to Hashicorp Consul again after Consul goes down and up again. So I should poll Consul if it is unavailable and should make it available and after it’s available I should reregister my service again ? I am using Spring Cloud Gateway Hoxton.SR7 by the way

Thank you