micro/util/signal/signal.go
Janos Dobronszki e5c215556e
Add SIGKILL to shutdown signals (#1552)
* Add SIGKILL to shutdown signals

* go mod tidy

* Add missing file
2020-04-21 14:00:12 +02:00

14 lines
270 B
Go

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