order the store's readers after its container without wanting it
This commit is contained in:
parent
b1c828dbf8
commit
868c57321c
1 changed files with 37 additions and 28 deletions
|
|
@ -30,8 +30,8 @@ let
|
|||
|
||||
credentialFile = "/run/credstore/${hyperhiveCfg.deploy.hive-controller.squid.selfcheck.credentialName}";
|
||||
|
||||
# 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.
|
||||
# Where the store runs on this host, the first login waits for its container.
|
||||
# No `wants`: a pull would start the container mid-switch on the old closure.
|
||||
storeContainer = lib.optional baoDeploy.enable "container@${baoCfg.machine}.service";
|
||||
|
||||
storeRetry = import ./lib/store-retry.nix { };
|
||||
|
|
@ -43,7 +43,7 @@ in
|
|||
description = "Read the squid self-check's password from the swarm secret store";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
before = [ "squid-selfcheck.service" ];
|
||||
wants = [ "network-online.target" ] ++ storeContainer;
|
||||
wants = [ "network-online.target" ];
|
||||
after = [
|
||||
"network-online.target"
|
||||
"systemd-tmpfiles-setup.service"
|
||||
|
|
|
|||
Loading…
Reference in a new issue