cluster: use consul-ready when waiting for consul

This commit is contained in:
Max Headroom 2024-07-17 16:34:40 +02:00
parent 4df1c11ba3
commit b655d9e086
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