From 08bf35647d1d277c41c973e91911b6b394b237af Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 23 Aug 2023 00:59:31 +0200 Subject: [PATCH] modules/patroni: set RequiresMountsFor --- modules/patroni/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/patroni/default.nix b/modules/patroni/default.nix index 9ed1e10..7fd332f 100644 --- a/modules/patroni/default.nix +++ b/modules/patroni/default.nix @@ -271,6 +271,8 @@ in systemd-notify EXTEND_TIMEOUT_USEC=300000000 ''; + unitConfig.RequiresMountsFor = [ cfg.dataDir cfg.postgresqlDataDir ]; + serviceConfig = mkMerge [{ User = cfg.user; Group = cfg.group;