implemented event and req
This commit is contained in:
12
pkg/utils/interrupt/sigterm.go
Normal file
12
pkg/utils/interrupt/sigterm.go
Normal file
@@ -0,0 +1,12 @@
|
||||
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
||||
|
||||
package interrupt
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func init() {
|
||||
signals = []os.Signal{os.Interrupt, syscall.SIGTERM}
|
||||
}
|
||||
Reference in New Issue
Block a user