2022-08-18 13:25:32 +00:00
|
|
|
//go:build !windows
|
|
|
|
|
|
|
|
package cli
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
"syscall"
|
|
|
|
)
|
|
|
|
|
2024-03-15 13:16:36 +00:00
|
|
|
// StopSignals is the list of signals that are used for handling
|
|
|
|
// shutdown behavior.
|
|
|
|
var StopSignals = []os.Signal{
|
2022-08-18 13:25:32 +00:00
|
|
|
os.Interrupt,
|
|
|
|
syscall.SIGTERM,
|
|
|
|
syscall.SIGHUP,
|
|
|
|
}
|
2024-03-15 13:16:36 +00:00
|
|
|
|
|
|
|
// StopSignals is the list of signals that are used for handling
|
|
|
|
// graceful shutdown behavior.
|
|
|
|
var StopSignalsNoInterrupt = []os.Signal{
|
|
|
|
syscall.SIGTERM,
|
|
|
|
syscall.SIGHUP,
|
|
|
|
}
|
|
|
|
|
|
|
|
// InterruptSignals is the list of signals that are used for handling
|
|
|
|
// immediate shutdown behavior.
|
|
|
|
var InterruptSignals = []os.Signal{
|
|
|
|
os.Interrupt,
|
|
|
|
}
|