Skip to content

Commit

Permalink
nixos: systemd sockets now needs network-online.target
Browse files Browse the repository at this point in the history
 since they now manage also TCP sockets.
  • Loading branch information
jbgi committed Mar 2, 2021
1 parent 8a3c064 commit e0ff7ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nix/nixos/cardano-node-service.nix
Expand Up @@ -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)}" ]
Expand Down

0 comments on commit e0ff7ee

Please sign in to comment.