diff --git a/modules/consul-service-registry/default.nix b/modules/consul-service-registry/default.nix index 2088d66..ffa3a44 100644 --- a/modules/consul-service-registry/default.nix +++ b/modules/consul-service-registry/default.nix @@ -51,6 +51,8 @@ let RemainAfterExit = true; ExecStart = "${consul} services register ${servicesJson}"; ExecStop = "${consul} services deregister ${servicesJson}"; + Restart = "on-failure"; + RestartSec = "1s"; }; }; }.${mode};