frostfs-s3-gw/cmd/s3-gw/main.go
Marina Biryukova 250538a9b4 [#541] Use default value if config param is unset after SIGHUP
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
2025-01-23 09:52:48 +03:00

18 lines
233 B
Go

package main
import (
"context"
"os/signal"
"syscall"
)
func main() {
g, _ := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
cfg := newSettings()
a := newApp(g, cfg)
go a.Serve(g)
a.Wait()
}