aboutsummaryrefslogtreecommitdiff
path: root/weed/command/volume.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/volume.go')
-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")