aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-09-29 00:44:13 +0500
committerGitHub <noreply@github.com>2022-09-28 12:44:13 -0700
commit301b678147c4cca7a3a7b70273ddf389cfcd133a (patch)
treea53cdf0b5f0efd32326b6b6699181c7022f03998 /weed/command
parent47fd5d3fa1803fddf277f565da1c914b21a45fe3 (diff)
downloadseaweedfs-301b678147c4cca7a3a7b70273ddf389cfcd133a.tar.xz
seaweedfs-301b678147c4cca7a3a7b70273ddf389cfcd133a.zip
[volume] Add new volumes to HUP(reload) signal (#3755)
Add new volumes to HUP(reload) signal
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/volume.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go
index 24945d0e3..4c6bb20c2 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -265,6 +265,8 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
// starting the cluster http server
clusterHttpServer := v.startClusterHttpService(volumeMux)
+ grace.OnReload(volumeServer.LoadNewVolumes)
+
stopChan := make(chan bool)
grace.OnInterrupt(func() {
fmt.Println("volume server has been killed")