ArticleslgStudy

computer science

Systemd

Systemd is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Systemd rather than just read about it. In short: systemd is a software suite for system and service management on Linux built to unify service configuration and behavior across Linux distributions. Its main component is an init system used to bootstrap user space and manage user processes.

Systemd — main illustration
Systemd — illustration

Key takeaways

  • Systemd belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Systemd to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Systemd from memory before moving on to harder problems.

Reference excerpt

systemd is a software suite for system and service management on Linux built to unify service configuration and behavior across Linux distributions. Its main component is an init system used to bootstrap user space and manage user processes. It also provides various daemons and utilities, including device management, login management, network connection management, and event logging. The name systemd adheres to the Unix convention of naming daemons by appending the letter d, and also plays on the French phrase Système D (a person's ability to quickly adapt and improvise in the face of problems). In Linux distributions, systemd is used as a replacement for Sysvinit and other init systems. Since 2015, nearly all Linux distributions have adopted systemd. It has been praised by developers and users of distributions that adopted it for providing a stable, fast out-of-the-box solution for issues that had existed in the Linux space for years. At the time of its adoption, it was the only parallel boot and init system offering centralized management of processes, daemons, services, and mount points. Critics of systemd contend it suffers from feature creep and has damaged interoperability across Unix-like operating systems (as it does not run on non-Linux Unix derivatives like BSD or Solaris). In addition, they contend systemd's large feature set creates a larger attack surface. This has led to the development of several minor Linux distributions replacing systemd with other init systems like SysVinit or OpenRC.

History Lennart Poettering and Kay Sievers, the software engineers then working for Red Hat who initially developed systemd, started a project to replace Linux's conventional System V init in 2010. An April 2010 blog post from Poettering, titled "Rethinking PID 1", introduced an experimental version of what would later become systemd. They sought to surpass the efficiency of the init daemon in several ways. They wanted to improve the software framework for expressing dependencies, to allow more processes to run concurrently or in parallel during system booting, and to reduce the computational overhead of the shell. In May 2011, Fedora Linux became the first major Linux distribution to enable systemd by default, replacing Upstart. The reasoning at the time was that systemd provided extensive parallelization during startup, better management of processes and overall a saner, dependency-based approach to control of the system. In October 2012, Arch Linux made systemd the default, switching from SysVinit. Developers had debated since August 2012 and concluded it was faster and had more features than SysVinit and that maintaining SysVinit was not worth the effort. Some thought the criticism of systemd was not based on actual shortcomings of the software but rather personal dislike of Poettering and a general opposition to change. Several complaints about systemd—including its use of D-Bus, C instead of bash, and an optional on-disk journal format—were instead described as advantages by the Arch maintainers. Between 2013 and 2014, the Debian Technical Committee engaged in a widely publicized debate on the mailing list about which init system to use as the default in Debian 8 before settling on systemd. Soon after, Debian developer Joey Hess, Technical Committee members Russ Allbery and Ian Jackson, and systemd package maintainer Tollef Fog Heen resigned from their positions, citing the extraordinary levels of stress caused by disputes on systemd integration within the Debian and FOSS community that rendered regular maintenance virtually impossible. Mark Shuttleworth announced soon afterwards that the Debian-based Ubuntu would use systemd to replace its old Upstart init system. In August 2015, systemd started providing a login shell, callable via machinectl shell. In September 2016, a security bug was discovered that allowed any unprivileged user to perform a denial-of-service attack against systemd. Rich Felker, developer of musl, stated that this bug reveals a major "system development design flaw". In 2017 another security bug was discovered in systemd-resolved, CVE-2017-9445, which "allows disruption of service" by a "malicious DNS server". Later in 2017, the Pwnie Awards gave author Lennart Poettering a "lamest vendor response" award due to his handling of the vulnerabilities.

Design

Poettering describes systemd development as "never finished, never complete, but tracking progress of technology". In May 2014, Poettering further described systemd as unifying "pointless differences between distributions", by providing the following three general functions:

… excerpt ends here. Continue reading the full article.

Illustrations

Systemd illustration
Systemd: The architecture of systemd as it is used by Tizen. Several systemd targets, including telephony, bootmode, dlog, and tizen service are from Tizen and are not components of systemd.[37]
The architecture of systemd as it is used by Tizen. Several systemd targets, including telephony, bootmode, dlog, and tizen service are from Tizen and are not components of systemd.[37]
Systemd: Unified-hierarchy cgroups will be accessible exclusively by systemd through systemd-nspawn.[38]
Unified-hierarchy cgroups will be accessible exclusively by systemd through systemd-nspawn.[38]
Systemd: A screenshot of systemd-boot
A screenshot of systemd-boot
Systemd: A screenshot of timedatectl
A screenshot of timedatectl

Worked examples

Example 1 — a first encounter with Systemd

Start with the simplest possible case. Write down what Systemd claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Systemd before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Systemd ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Systemd

In research
Systemd appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Systemd in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Systemd is common in secondary-school and first-year university syllabi. It links to neighbouring topics Freedesktop.org, Linux-only free software, Linux kernel-related software, so understanding it makes those chapters shorter.
In everyday life
Look for Systemd outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Systemd” →

How to study Systemd in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Systemd means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Systemd out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Systemd in simple terms?

systemd is a software suite for system and service management on Linux built to unify service configuration and behavior across Linux distributions. Its main component is an init system used to bootstrap user space and manage user processes.

Why does Systemd matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Systemd?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Systemd.

Tags

  • Freedesktop.org
  • Linux-only free software
  • Linux kernel-related software
  • Network time-related software
  • Software that uses Meson
  • Unix process- and task-management-related software

Keep exploring