mirror of https://github.com/ledisdb/ledisdb.git
update signal notify
This commit is contained in:
parent
a5dcdbf6c3
commit
529c158293
|
@ -81,6 +81,8 @@ func main() {
|
||||||
|
|
||||||
sc := make(chan os.Signal, 1)
|
sc := make(chan os.Signal, 1)
|
||||||
signal.Notify(sc,
|
signal.Notify(sc,
|
||||||
|
os.Kill,
|
||||||
|
os.Interrupt,
|
||||||
syscall.SIGHUP,
|
syscall.SIGHUP,
|
||||||
syscall.SIGINT,
|
syscall.SIGINT,
|
||||||
syscall.SIGTERM,
|
syscall.SIGTERM,
|
||||||
|
|
Loading…
Reference in New Issue