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 = {
|
systemd.services.chant-listener = {
|
||||||
description = "Chant Listener";
|
description = "Chant Listener";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
wants = [ "consul.service" ];
|
requires = [ "consul-ready.service" ];
|
||||||
after = [ "consul.service" ];
|
after = [ "consul-ready.service" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${config.services.consul.package}/bin/consul watch --type=event ${eventHandler}";
|
ExecStart = "${config.services.consul.package}/bin/consul watch --type=event ${eventHandler}";
|
||||||
|
|
||||||
|
|
|
@ -52,8 +52,8 @@ in
|
||||||
systemd.services.locksmith = {
|
systemd.services.locksmith = {
|
||||||
description = "The Locksmith's Chant";
|
description = "The Locksmith's Chant";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
wants = [ "consul.service" ];
|
requires = [ "consul-ready.service" ];
|
||||||
after = [ "consul.service" ];
|
after = [ "consul-ready.service" ];
|
||||||
chant.enable = true;
|
chant.enable = true;
|
||||||
path = [
|
path = [
|
||||||
config.services.consul.package
|
config.services.consul.package
|
||||||
|
|
Loading…
Reference in a new issue