Ravi Sir's Cards › AWS
SIGTERM vs SIGKILL
This comparison card contrasts SIGTERM and SIGKILL. SIGTERM is described as polite, can be trapped. SIGKILL is described as forced, cannot be trapped. The card pairs SIGTERM with always first, and SIGKILL with last resort.
Read card text
What this card says
Stop
SIGTERM
Polite, can be trapped.
SIGKILL
Forced, cannot be trapped.
Key points
Cleanup runs.
No cleanup.
Example
kill PID
Use when
Always first.
Last resort.