From 437240ec20e2bba89f396bf831591994a5b050fe Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 14 Aug 2024 12:46:30 +0200 Subject: [PATCH] cluster/services/patroni: wait for consul --- cluster/services/patroni/worker.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cluster/services/patroni/worker.nix b/cluster/services/patroni/worker.nix index b6d33ee..1e7def7 100644 --- a/cluster/services/patroni/worker.nix +++ b/cluster/services/patroni/worker.nix @@ -25,6 +25,10 @@ in "d '${baseDir}' 0700 patroni patroni - -" "d '${walDir}' 0700 patroni patroni - -" ]; + systemd.services.patroni = { + requires = [ "consul-ready.service" ]; + after = [ "consul-ready.service" ]; + }; services.patroni = { enable = true; name = hostName;