diff --git a/cmd/neofs-node/config.go b/cmd/neofs-node/config.go index d84cac288..39f6c135e 100644 --- a/cmd/neofs-node/config.go +++ b/cmd/neofs-node/config.go @@ -356,8 +356,6 @@ func initCfg(appCfg *config.Config) *cfg { c.onShutdown(c.clientCache.CloseAll) // clean up connections c.onShutdown(func() { _ = c.persistate.Close() }) - initLocalStorage(c) - return c } diff --git a/cmd/neofs-node/main.go b/cmd/neofs-node/main.go index bb4827bb8..7ca7813b2 100644 --- a/cmd/neofs-node/main.go +++ b/cmd/neofs-node/main.go @@ -79,6 +79,8 @@ func initAndLog(c *cfg, name string, initializer func(*cfg)) { } func initApp(c *cfg) { + initLocalStorage(c) + c.ctx, c.ctxCancel = signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM, syscall.SIGHUP) initAndLog(c, "storage engine", func(c *cfg) {