Watch
0
0
Fork
You've already forked hyperhive
0

let the store container's cold start finish, and order its readers after it

This commit is contained in:
atlas 2026-10-29 13:05:47 +01:00 • committed by mara
commit b1c828dbf8

View file

@ -43,6 +43,10 @@ let
dir = "/run/hyperhive-priv/attic";
# Where the store runs on this host, its container is up before the first
# login attempt instead of failing against a store that is still starting.
storeContainer = lib.optional baoDeploy.enable "container@${baoCfg.machine}.service";
storeRetry = import ./lib/store-retry.nix { };
storeRefreshTimer = import ./lib/store-refresh-timer.nix { };
in
@ -58,11 +62,12 @@ in
systemd.services.hive-priv-cache-facts = {
description = "Read the swarm cache's public key and pull token for hive-priv";
wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" ];
wants = [ "network-online.target" ] ++ storeContainer;
after = [
"network-online.target"
"systemd-tmpfiles-setup.service"
];
]
++ storeContainer;
path = [
baoDeploy.package
pkgs.coreutils