1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00
go-micro/util/signal/signal.go
2020-04-21 14:14:20 +02:00

14 lines
263 B
Go

package signal
import (
"os"
"syscall"
)
// ShutDownSingals returns all the singals that are being watched for to shut down services.
func Shutdown() []os.Signal {
return []os.Signal{
syscall.SIGTERM, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGKILL,
}
}