filer: load filer conf when starting

This commit is contained in:
Chris Lu
2020-11-15 14:06:03 -08:00
parent 0a406f652e
commit 590f02179d
5 changed files with 83 additions and 30 deletions

View File

@@ -131,6 +131,8 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
fs.filer.LoadBuckets()
fs.filer.LoadFilerConf()
grace.OnInterrupt(func() {
fs.filer.Shutdown()
})