|
|
@ -140,7 +140,7 @@ func Start(
|
|
|
|
signal.Notify(sigs, syscall.SIGTERM)
|
|
|
|
signal.Notify(sigs, syscall.SIGTERM)
|
|
|
|
select {
|
|
|
|
select {
|
|
|
|
case <-sigs:
|
|
|
|
case <-sigs:
|
|
|
|
util.SIGUSR1Exit()
|
|
|
|
util.SIGTERMExit()
|
|
|
|
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
|
|
|
|
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
|
|
|
|
defer cancel()
|
|
|
|
defer cancel()
|
|
|
|
if err := gracefulStopWithCtx(ctx, srv.GracefulStop); err != nil {
|
|
|
|
if err := gracefulStopWithCtx(ctx, srv.GracefulStop); err != nil {
|
|
|
|