From e0ff7ee484d42df1e2f77c0ec2d83baef72240bc Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Giraudeau Date: Tue, 2 Mar 2021 16:37:20 +0100 Subject: [PATCH] nixos: systemd sockets now needs network-online.target since they now manage also TCP sockets. --- nix/nixos/cardano-node-service.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nix/nixos/cardano-node-service.nix b/nix/nixos/cardano-node-service.nix index b4a5be5d1c7..71b79859adc 100644 --- a/nix/nixos/cardano-node-service.nix +++ b/nix/nixos/cardano-node-service.nix @@ -509,6 +509,8 @@ in { systemd.sockets = genInstanceConf (n: i: lib.mkIf cfg.systemdSocketActivation (recursiveUpdate { description = "Socket of the ${n} service."; wantedBy = [ "sockets.target" ]; + after = [ "network-online.target" ]; + wants = [ "network-online.target" ]; partOf = [ "${n}.service" ]; socketConfig = { ListenStream = [ "${cfg.hostAddr}:${toString (if cfg.shareIpv4port then cfg.port else cfg.port + i)}" ]