modules/consul-service-registry: auto-restart in external mode
This commit is contained in:
parent
625ae1ea25
commit
789889fe42
1 changed files with 2 additions and 0 deletions
|
@ -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};
|
||||||
|
|
Loading…
Reference in a new issue