diff --git a/packages/networking/ipfs-cluster/cluster.go b/packages/networking/ipfs-cluster/cluster.go index cb3af38..3668a88 100644 --- a/packages/networking/ipfs-cluster/cluster.go +++ b/packages/networking/ipfs-cluster/cluster.go @@ -9,6 +9,7 @@ import ( "sync" "time" + "github.com/coreos/go-systemd/v22/daemon" "github.com/ipfs-cluster/ipfs-cluster/adder" "github.com/ipfs-cluster/ipfs-cluster/adder/sharding" "github.com/ipfs-cluster/ipfs-cluster/adder/single" @@ -746,6 +747,7 @@ This might be due to one or several causes: c.readyB = true c.shutdownLock.Unlock() logger.Info("** IPFS Cluster is READY **") + daemon.SdNotify(false, daemon.SdNotifyReady) } // Ready returns a channel which signals when this peer is diff --git a/packages/networking/ipfs-cluster/go.mod b/packages/networking/ipfs-cluster/go.mod index 69e8c52..bb97061 100644 --- a/packages/networking/ipfs-cluster/go.mod +++ b/packages/networking/ipfs-cluster/go.mod @@ -4,6 +4,7 @@ require ( contrib.go.opencensus.io/exporter/jaeger v0.2.1 contrib.go.opencensus.io/exporter/prometheus v0.4.1 github.com/blang/semver v3.5.1+incompatible + github.com/coreos/go-systemd/v22 v22.3.2 github.com/dgraph-io/badger v1.6.2 github.com/dustin/go-humanize v1.0.0 github.com/golang-jwt/jwt/v4 v4.4.2 @@ -86,7 +87,6 @@ require ( github.com/cespare/xxhash/v2 v2.1.2 // indirect github.com/cheekybits/genny v1.0.0 // indirect github.com/containerd/cgroups v1.0.3 // indirect - github.com/coreos/go-systemd/v22 v22.3.2 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3 // indirect github.com/cskr/pubsub v1.0.2 // indirect diff --git a/packages/networking/ipfs-cluster/project.nix b/packages/networking/ipfs-cluster/project.nix index 2397182..803ab8d 100644 --- a/packages/networking/ipfs-cluster/project.nix +++ b/packages/networking/ipfs-cluster/project.nix @@ -43,7 +43,7 @@ ]); }; - vendorSha256 = "sha256-4pCJnQ/X5bvlgyHcRVZ8LyOexaKmz+1xAntMpZCpvd0="; + vendorSha256 = "sha256-/fy46kF9XN0nrkmgPjFCxHGsqbxabTKFNGKUIoDBDjI="; doCheck = false;