cluster: use consul-ready when waiting for consul
This commit is contained in:
parent
9aa1f29e24
commit
fa57c810c0
2 changed files with 4 additions and 4 deletions
|
@ -60,8 +60,8 @@ in
|
|||
systemd.services.chant-listener = {
|
||||
description = "Chant Listener";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
wants = [ "consul.service" ];
|
||||
after = [ "consul.service" ];
|
||||
requires = [ "consul-ready.service" ];
|
||||
after = [ "consul-ready.service" ];
|
||||
serviceConfig = {
|
||||
ExecStart = "${config.services.consul.package}/bin/consul watch --type=event ${eventHandler}";
|
||||
|
||||
|
|
|
@ -52,8 +52,8 @@ in
|
|||
systemd.services.locksmith = {
|
||||
description = "The Locksmith's Chant";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
wants = [ "consul.service" ];
|
||||
after = [ "consul.service" ];
|
||||
requires = [ "consul-ready.service" ];
|
||||
after = [ "consul-ready.service" ];
|
||||
chant.enable = true;
|
||||
path = [
|
||||
config.services.consul.package
|
||||
|
|
Loading…
Reference in a new issue