Unverified Commit d6b1e625 authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

Merge pull request #272041 from Luflosi/kubo-fix-potential-panic-on-start

nixos/kubo: fix potential panic on startup
parents 386647be d4fcb44d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -361,6 +361,8 @@ in
        Group = cfg.group;
        StateDirectory = "";
        ReadWritePaths = optionals (!cfg.autoMount) [ "" cfg.dataDir ];
        # Make sure the socket units are started before ipfs.service
        Sockets = [ "ipfs-gateway.socket" "ipfs-api.socket" ];
      } // optionalAttrs (cfg.serviceFdlimit != null) { LimitNOFILE = cfg.serviceFdlimit; };
    } // optionalAttrs (!cfg.startWhenNeeded) {
      wantedBy = [ "default.target" ];