diff --git a/cmd/neofs-node/main.go b/cmd/neofs-node/main.go index 47b98551..4ff55f63 100644 --- a/cmd/neofs-node/main.go +++ b/cmd/neofs-node/main.go @@ -5,6 +5,7 @@ import ( "flag" "log" + "github.com/nspcc-dev/neofs-node/pkg/services/control" "github.com/nspcc-dev/neofs-node/pkg/util/grace" "go.uber.org/zap" ) @@ -23,10 +24,16 @@ func main() { initApp(c) + c.setHealthStatus(control.HealthStatus_STARTING) + bootUp(c) + c.setHealthStatus(control.HealthStatus_READY) + wait(c) + c.setHealthStatus(control.HealthStatus_SHUTTING_DOWN) + shutdown(c) }