init process
The first process started on a system or in a container, with process ID 1 and special duties.
In more detail
On a normal Linux machine PID 1 is an init system such as systemd, which starts services and adopts orphaned processes, collecting their exit status. In a container, PID 1 is simply the main process, and the kernel treats it specially: it ignores termination signals it has no handler for, and it must clean up exited children. That is why a program that shuts down fine on a laptop can ignore a stop request in a container, and why tiny init programs exist to run in front of it.
Related terms
- process ID — The number the kernel gives each running process so it can be told apart from all the others.
- 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.
- graceful shutdown — Stopping a service in an orderly way: finish current work, close connections, then exit.
- systemd — The program that starts and supervises background services on most Linux distributions.
- boot process — The chain of handoffs that takes a machine from power-on to running services: firmware, bootloader, kernel, initramfs and then the init system.
- parent process — The process that started another process; every process except the first records its parent's PID.
Taught in
- Container Images The Exam Way — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Encrypting Pod-to-Pod Traffic: mTLS With Istio And Cilium — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Minimal Base Images: Less To Attack — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Why Containers: Bare Metal, Machines And Processes — Docker Architecture & Production Containers
- Namespaces And Cgroups: Isolation And Limits — Docker Architecture & Production Containers
- CMD, ENTRYPOINT, USER And Process Signals — Docker Architecture & Production Containers
- Environment, Secret Files And Runtime Restrictions — Docker Architecture & Production Containers
- Integration Tests, Test Data And Compose Cleanup — Docker Architecture & Production Containers
- Diagnose Crashes, Resource Limits And Unhealthy Containers — Docker Architecture & Production Containers
- Five Jobs, Five Workloads — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- What A Process Is — Linux Fundamentals & Systems Administration
- Booting: GRUB, The Kernel Command Line And initramfs — Linux Fundamentals & Systems Administration
- Production Hardening: Graceful Shutdown & Docker — Node.js Internals & Backend Services
- Targets, Boot And Shutdown — Red Hat Certified System Administrator (EX200) Exam Prep
- Recovering Root And Changing The Boot Loader — Red Hat Certified System Administrator (EX200) Exam Prep
- nmcli: IPv4 And IPv6 That Survive The Reboot — Red Hat Certified System Administrator (EX200) Exam Prep
- A New Depot By Friday: OpenTofu, Cloud-init, Pipelines And Kubernetes — 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
References
Certification courses
- CKAD course and practice exam: Certified Kubernetes Application Developer
- CKS course and practice exam: Certified Kubernetes Security Specialist
- KCNA course and practice exam: Kubernetes and Cloud Native Associate
- RHCSA course and practice exam: Red Hat Certified System Administrator (EX200)
- CompTIA Linux+ course and practice exam: XK0-006