modules/consul-service-registry: wait for consul
This commit is contained in:
parent
03e802bcab
commit
abc3b0b324
1 changed files with 2 additions and 1 deletions
|
@ -81,13 +81,14 @@ let
|
||||||
}.${mode};
|
}.${mode};
|
||||||
value = {
|
value = {
|
||||||
direct = {
|
direct = {
|
||||||
|
after = [ "consul.service" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStartPost = register servicesJson;
|
ExecStartPost = register servicesJson;
|
||||||
ExecStopPost = deregister servicesJson;
|
ExecStopPost = deregister servicesJson;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
external = {
|
external = {
|
||||||
after = [ "${unit}.service" ];
|
after = [ "consul.service" "${unit}.service" ];
|
||||||
wantedBy = [ "${unit}.service" ];
|
wantedBy = [ "${unit}.service" ];
|
||||||
unitConfig.BindsTo = "${unit}.service";
|
unitConfig.BindsTo = "${unit}.service";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
|
Loading…
Reference in a new issue