SIGKILL
The signal that ends a process immediately; it cannot be caught or ignored.
In more detail
The process gets no chance to clean up, which can leave temporary files or half-written data behind. Send it only after SIGTERM has failed. The exit code is 137 (128 + 9).
Examples
If a process does not exit soon after SIGTERM, the platform escalates to SIGKILL, which cannot be caught, so shutdown work must be quick.The kernel ends the process without running any cleanup handler, which can leave temporary files, locks or half-written data behind. Reserve it for a process that did not respond to SIGTERM within a reasonable time. The shell reports exit status 137.target=42 sig=KILL why=timeout cleanup=none records an escalation after a timeout.Related terms
- signal — A short notification the kernel delivers to a process, such as please stop or stop now.
- SIGTERM — The signal that politely asks a process to finish its work and exit.
- kill — The command that sends a signal to a process or job, SIGTERM by default, despite its name.
- OOM killer — The part of the Linux kernel that kills a process when memory runs out.
- exit code — A number a process returns when it finishes: 0 means success, anything else means something went wrong.
- terminationGracePeriodSeconds — The pod setting for how long Kubernetes waits after sending SIGTERM before killing the container with SIGKILL, 30 seconds by default.
- graceful shutdown — Stopping a service in an orderly way: finish current work, close connections, then exit.
Taught in
- Connect An Agent To MCP — AI Engineering: LLM Apps, RAG & Agents
- Processes, Jobs And Signals — Bash Scripting & Command Line Automation
- Usage, Requests And The Pod That Will Not Fit — Certified Kubernetes Administrator (CKA) Exam Prep
- Disposability, Dev Prod Parity And Logs — DevOps & Site Reliability Engineering
- Run, Stop, Restart And Remove A Container — Docker Architecture & Production Containers
- CMD, ENTRYPOINT, USER And Process Signals — Docker Architecture & Production Containers
- Environment, Secret Files And Runtime Restrictions — Docker Architecture & Production Containers
- Diagnose Crashes, Resource Limits And Unhealthy Containers — Docker Architecture & Production Containers
- Harden And Deliver The Complete Service Stack — Docker Architecture & Production Containers
- Health Probes & Graceful Shutdown: Kubernetes Lifecycles — Production Full-Stack Engineering
- Graceful Shutdown on SIGTERM — Concurrent Systems Programming with Go
- The Status Tells You Where To Look: Troubleshooting Pods — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Signals, And What kill Really Sends — Linux Fundamentals & Systems Administration
- Production Hardening: Graceful Shutdown & Docker — Node.js Internals & Backend Services
- The Reindex That Died With The VPN: Jobs, cron, at And Timers — CompTIA Linux+ (XK0-006) Exam Prep
- You Are In Emergency Mode: Boot Failures From GRUB To fstab, On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- Network Troubleshooting: The Ladder From Link To Port — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Reverse Proxies And Load Balancers — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- The Virtual File System: /proc, /sys, Binds And tmpfs — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Performance Triage: Processor, Memory Or Disk? — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Constraints: Limits, Control Groups And Listeners — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Disk Full At Three In The Morning — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- SSL Certificates: Create, Inspect And Verify A Chain — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Runlevels, Targets And A Polite Shutdown — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep
References
Certification courses
- AWS AIP-C01 course and practice exam: AI engineering with LLM apps, RAG and agents
- CKA course and practice exam: Certified Kubernetes Administrator
- KCNA course and practice exam: Kubernetes and Cloud Native Associate
- CompTIA Linux+ course and practice exam: XK0-006
- LFCS course and practice exam: Linux Foundation Certified System Administrator
- LPIC-1 course and practice exam: Linux Administrator (101-500 and 102-500)