1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-30 10:10:44 +02:00
go-micro/util/signal/signal.go

14 lines
263 B
Go
Raw Normal View History

package signal
import (
"os"
"syscall"
)
2022-09-30 16:27:07 +02:00
// ShutDownSingals returns all the signals that are being watched for to shut down services.
func Shutdown() []os.Signal {
return []os.Signal{
syscall.SIGTERM, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGKILL,
}
}