sous-chefs / consul

Development repository for the consul cookbook
https://supermarket.chef.io/cookbooks/consul
Apache License 2.0
192 stars 244 forks source link

Restart=always systemd condition for Consul #595

Closed manavkapoor closed 3 years ago

manavkapoor commented 3 years ago

Description

This automatically restarts consul if the process exits, is killed, or a timeout is reached.

Issues Resolved

This specifically fixes an issue when a portworx client reboots. Consul is in a race condition with portworx and docker and doesn't restart automatically. This change automates that process so there is minimal downtime.

Check List

ramereth commented 3 years ago

@manavkapoor this seems to have a lot of commits and a lot of conflicts. Can you please clean this up so we can review it properly?

damacus commented 3 years ago

Thanks for the PR!

@manavkapoor you might want to restart or rebase this. We would love the opportunity to have this option configurable, as I can see some people not wanting to restart it all the time.