PID 1
Platform Ops Glossary Init
Fundamentals, Kernel & Shell · Term #88

Init

The first process (PID 1) started by the kernel at boot; on modern distros, that's systemd.

Category
Fundamentals, Kernel & Shell
Complexity
Intermediate
Glossary Entry
#88 of 190
SystemdBoot ProcessSystemd TargetsSystemdBoot ProcessSystemd Targets
What Is It

The Short Answer

When the kernel finishes its own startup, the very last thing it does is start exactly one userspace process with PID 1 — by convention called "init." Every other process on the system is a descendant of PID 1, directly or indirectly, and PID 1 has one job no other process has: reaping orphaned processes (children whose original parent died) so they don't become zombies forever.

For most of Linux's history, init meant SysV init — a simple sequential script runner using numbered "runlevels." Nearly every major distro has since replaced it with systemd, which does the same PID-1 job but adds parallel startup, dependency-based ordering, and built-in service supervision.

How It Works

Under The Hood

If PID 1 itself crashes, the kernel panics immediately — there's no fallback process to take over, which is why init implementations are written to be extremely conservative and hard to crash.

Under systemd, PID 1 doesn't just start things once at boot; it stays running the whole time as the service supervisor, restarting crashed services, tracking dependencies between them, and adopting orphaned processes system-wide.

In Practice

Example Commands

check what's running as PID 1
ps -p 1 -o comm=
# almost always prints 'systemd' on modern distros
systemctl status
# systemd's own health summary, run as PID 1
Watch Out For

Common Mistakes

⚠️Trying to kill -9 1 to "restart everything" — this either does nothing (kernel protects PID 1 from most signals) or panics the kernel; never intentionally target PID 1.
⚠️Assuming a hung boot is always a hardware problem — a bad /etc/fstab entry or a broken systemd unit dependency is far more common.
VA
Vishal Abhinav
Platform Ops Engineer · Linux & Unix Glossary