cli: Handle sighup
This commit is contained in:
parent
0c3f4eb7dd
commit
26374e2644
@ -205,7 +205,7 @@ func ReqContext(cctx *cli.Context) context.Context {
|
||||
<-sigChan
|
||||
done()
|
||||
}()
|
||||
signal.Notify(sigChan, syscall.SIGTERM, syscall.SIGINT)
|
||||
signal.Notify(sigChan, syscall.SIGTERM, syscall.SIGINT, syscall.SIGHUP)
|
||||
|
||||
return ctx
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user