f9bf562393
* remove global error tracking * rpc_server: fix invalid register err * fix typo Co-authored-by: Asim Aslam <asim@aslam.me>
14 lines
263 B
Go
14 lines
263 B
Go
package signal
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
// ShutDownSignals 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,
|
|
}
|
|
}
|