TechnologyInit system

systemd

System and service manager for Linux that runs as the first process at boot, starts and supervises services and bundles logging and other components.

systemd is a system and service manager for Linux that runs as the first process started by the kernel (PID 1) and brings up the rest of the operating system. It replaced older init systems such as SysV init and Upstart on most major distributions. Beyond starting and stopping services, the project bundles a suite of components for logging, device management, user sessions, network configuration, name resolution, time synchronization and scheduled tasks, all configured through declarative unit files.

Lennart Poettering and Kay Sievers, then at Red Hat, announced systemd in 2010. It starts services in parallel based on declared dependencies, uses socket activation so that a service can be launched when its first connection arrives and tracks every process it starts in Linux control groups, so that a service and all its child processes can be monitored and stopped reliably. Fedora made it the default in 2011, and by 2015 Debian, Ubuntu and most other major distributions had followed. Its journal stores logs in a structured, indexed binary format.

Few pieces of Linux infrastructure have been debated as much. Supporters credit systemd with faster boots, consistent service management across distributions and options for limiting and sandboxing services. Critics argue that it concentrates too many functions in one project, departs from the Unix tradition of small single-purpose tools and makes other software depend on it. The dispute contributed to the creation of Devuan, a fork of Debian without systemd. Administrators work with it mainly through the systemctl and journalctl commands, and its timers offer an alternative to cron.

Key points

  • systemd runs as PID 1 and manages the startup and supervision of services on Linux.
  • Unit files declare services, dependencies, mounts, timers and sockets in a declarative format.
  • Most major Linux distributions adopted systemd as their default init system between 2011 and 2015.
  • Its scope and design sparked lasting debate, including the creation of the Devuan distribution.

Related entries

Technology

Linux

FOSSHardware

Free and open-source Unix-like kernel created by Linus Torvalds in 1991 that underpins Android, most servers and many embedded devices.

Glossary term

Daemon

DevOpsFOSS

Computer program that runs in the background, without direct user interaction, to provide services or perform tasks on Unix-like systems.

Glossary term

Cron

DevOps

Time-based job scheduler in Unix-like operating systems that runs commands or scripts automatically at specified times, dates or intervals.

Glossary term

Operating System

HardwareProgrammingFOSS

System software that manages a computer's hardware resources and provides common services and interfaces for the programs that run on it.

Glossary term

Kernel (Operating System)

HardwareFOSSProgramming

Core component of an operating system that runs with full hardware privileges and manages processes, memory, devices and system calls.

Organization

Volunteer community, founded in 1993, that develops Debian, a free operating system and one of the oldest and most influential Linux distributions.

Technology

Community Linux distribution sponsored by Red Hat that adopts emerging open-source technologies early and feeds into Red Hat Enterprise Linux.

Organization

Red Hat

FOSSDevOps

American software company, part of IBM since 2019, that built a large business on open-source software such as Red Hat Enterprise Linux.