cluster: use consul-ready when waiting for consul

This commit is contained in:
Max Headroom 2024-07-17 16:34:40 +02:00
parent 9aa1f29e24
commit fa57c810c0
2 changed files with 4 additions and 4 deletions

View file

@ -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}";

View file

@ -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