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};
|
||||
value = {
|
||||
direct = {
|
||||
after = [ "consul.service" ];
|
||||
serviceConfig = {
|
||||
ExecStartPost = register servicesJson;
|
||||
ExecStopPost = deregister servicesJson;
|
||||
};
|
||||
};
|
||||
external = {
|
||||
after = [ "${unit}.service" ];
|
||||
after = [ "consul.service" "${unit}.service" ];
|
||||
wantedBy = [ "${unit}.service" ];
|
||||
unitConfig.BindsTo = "${unit}.service";
|
||||
serviceConfig = {
|
||||
|
|
Loading…
Reference in a new issue