frostfs-s3-lifecycler/cmd/s3-lifecycler/main.go

17 lines
249 B
Go
Raw Normal View History

package main
import (
"context"
"os/signal"
"syscall"
)
func main() {
ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
defer cancel()
app := newApp(ctx, settings())
go app.Serve(ctx)
app.Wait()
}