frostfs-s3-gw/cmd/s3-gw/main.go
Denis Kirillov 63275f7876 [#702] Reload config level on SIGHUP
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2022-09-28 15:07:31 +03:00

20 lines
252 B
Go

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