From a244e9ae44cb7e1fcb61c18a47c7942e6c22d355 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Sat, 20 Apr 2024 11:20:41 -0400 Subject: [PATCH] add more dependencies for attic-watch-store Hopefully this should make it so attic-watch-store starts only after haproxy becomes available on docker Signed-off-by: ahuston-0 --- systems/palatine-hill/configuration.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/systems/palatine-hill/configuration.nix b/systems/palatine-hill/configuration.nix index 706e307..f17f6c2 100644 --- a/systems/palatine-hill/configuration.nix +++ b/systems/palatine-hill/configuration.nix @@ -202,9 +202,17 @@ in # configured default webstore for this on root user separately systemd.services.attic-watch-store = { wantedBy = [ "multi-user.target" ]; - after = [ "network-online.target" ]; - requires = [ "network-online.target" ]; - description = "Upload all store content to binary catch"; + after = [ + "network-online.target" + "docker.service" + "atticd.service" + ]; + requires = [ + "network-online.target" + "docker.service" + "atticd.service" + ]; + description = "Upload all store content to binary cache"; serviceConfig = { User = "root"; Restart = "always";