modules/consul-service-registry: auto-restart in external mode

This commit is contained in:
Max Headroom 2023-03-06 22:26:30 +01:00
parent 625ae1ea25
commit 789889fe42

View file

@ -51,6 +51,8 @@ let
RemainAfterExit = true; RemainAfterExit = true;
ExecStart = "${consul} services register ${servicesJson}"; ExecStart = "${consul} services register ${servicesJson}";
ExecStop = "${consul} services deregister ${servicesJson}"; ExecStop = "${consul} services deregister ${servicesJson}";
Restart = "on-failure";
RestartSec = "1s";
}; };
}; };
}.${mode}; }.${mode};