systemd is the default init system and service manager for modern Linux distributions, including RHEL, Ubuntu, and Arch Linux. It replaces the traditional SysVinit, managing user-space components and system processes. Its primary goal is to provide a standardized framework for system initialization and resource management.
How it works
The system operates using units defined in declarative configuration files. Key unit types include .service for daemons and .socket for socket-based activation. systemd tracks process hierarchies using Linux Control Groups (cgroups), ensuring that all child processes are correctly managed or terminated with the parent service.
It is used to handle application lifecycles and system logging via journald. By utilizing aggressive parallelization and socket activation, systemd starts services as soon as their dependencies are met, significantly reducing boot times compared to legacy sequential shell scripts.
A common command is systemctl status sshd, which provides the current state and recent logs for the SSH daemon. Fact: systemd is now the standard for over 90% of enterprise Linux deployments, providing a unified API for managing system resources across different distributions.