Adding SIGQUIT because without it supervisord makes honk vomit when quitting
This commit is contained in:
parent
fbe8737acf
commit
6b333c62f3
3
web.go
3
web.go
|
@ -2395,8 +2395,7 @@ var workinprogress = 0
|
||||||
|
|
||||||
func enditall() {
|
func enditall() {
|
||||||
sig := make(chan os.Signal)
|
sig := make(chan os.Signal)
|
||||||
signal.Notify(sig, os.Interrupt)
|
signal.Notify(sig, os.Interrupt, syscall.SIGTERM, syscall.SIGQUIT)
|
||||||
signal.Notify(sig, syscall.SIGTERM)
|
|
||||||
<-sig
|
<-sig
|
||||||
ilog.Printf("stopping...")
|
ilog.Printf("stopping...")
|
||||||
for i := 0; i < workinprogress; i++ {
|
for i := 0; i < workinprogress; i++ {
|
||||||
|
|
Loading…
Reference in New Issue