Interface: KillOptions
Graceful and forced shutdown policy for kill.
Properties
Section titled “Properties”forceSignal?
Section titled “forceSignal?”
optionalforceSignal?:false|Signals
Signal sent to survivors. false disables forced termination. Defaults to SIGKILL.
forceTimeoutMs?
Section titled “forceTimeoutMs?”
optionalforceTimeoutMs?:number
Time to poll and force newly discovered descendants. Defaults to 4 seconds.
gracefulSignal?
Section titled “gracefulSignal?”
optionalgracefulSignal?:false|Signals
Signal sent to the snapshotted process tree. false skips this phase. Defaults to SIGTERM.
gracefulSignalTarget?
Section titled “gracefulSignalTarget?”
optionalgracefulSignalTarget?:"root"|"tree"
Processes receiving the graceful signal. Defaults to the complete process tree.
gracefulTimeoutMs?
Section titled “gracefulTimeoutMs?”
optionalgracefulTimeoutMs?:number
Time to wait for graceful shutdown. Defaults to 10 seconds.
pollIntervalMs?
Section titled “pollIntervalMs?”
optionalpollIntervalMs?:number
Interval used to refresh and poll the process tree. Defaults to 100 milliseconds.