mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
* fix: separate signals for passive, active, and forced shutdown `SIGTERM`: Passive shutdown stopping provisioner daemons from accepting new jobs but waiting for existing jobs to successfully complete. `SIGINT` (old existing behavior): Notify provisioner daemons to cancel in-flight jobs, wait 5s for jobs to be exited, then force quit. `SIGKILL`: Untouched from before, will force-quit. * Revert dramatic signal changes * Rename * Fix shutdown behavior for provisioner daemons * Add test for graceful shutdown
18 lines
197 B
Go
18 lines
197 B
Go
//go:build windows
|
|
|
|
package cli
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
var StopSignals = []os.Signal{
|
|
os.Interrupt,
|
|
}
|
|
|
|
var StopSignalsNoInterrupt = []os.Signal{}
|
|
|
|
var InterruptSignals = []os.Signal{
|
|
os.Interrupt,
|
|
}
|