User:scotXW/systemd
Original author(s) | Lennart Poettering, Kay Sievers |
---|---|
Developer(s) | Lennart Poettering, Kay Sievers and others[1] |
Initial release | 30 March 2010 |
Stable release | 251 (May 21, 2022[±][2] | )
Written in | C[3] |
Operating system | Linux |
Type | Init daemon |
License | first GPLv2+, currently GNU LGPL 2.1+ [4] |
Website | freedesktop.org/…/systemd/ |
systemd is a system management daemon designed for Linux and programmed exclusively for the Linux API. For systems using it, it is the first process which is executed in user space during the Linux startup process. Therefore, systemd serves as the root of the user space's process tree. The name systemd adheres to the Unix convention of making daemons easier to distinguish by having letter d as the last one in their actual filenames.[5]
Components of the systemd software bundle
[edit]To unnecessarily confuse matters, systemd is not just the name of the init daemon but can also refer to the entire software bundle around systemd. This includes the daemons systemd, journald, logind and networkd and a couple of other low-level components such as libraries and utilities.
Systemd is published as free and open-source software under the terms of the GNU Lesser General Public License version 2.1 or later.[4]
systemd
[edit]Systemd was developed for Linux to replace the init system inherited from UNIX System V and Berkeley Software Distribution (BSD) operating systems. Like init, systemd is a daemon that manages other daemons. All daemons, including systemd, are background processes. Systemd is the first daemon to start (during booting) and the last daemon to terminate (during shutdown).
Lennart Poettering and Kay Sievers, the software engineers who initially developed systemd,[1] 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 processing to be done concurrently or in parallel during system booting; and to reduce the computational overhead of the shell.
Systemd's initialization instructions for each daemon are recorded in a declarative configuration file rather than a shell script. For inter-process communication, systemd makes Unix domain sockets and D-Bus available to the running daemons. Systemd is also capable of aggressive parallelization.
Among systemd's auxiliary features are a cron-like job scheduler called systemd Calendar Timers, and an event logging subsystem called journald.[6] The system administrator may choose whether to log system events with systemd or syslog. Systemd's logfile is a binary file. The state of systemd itself can be preserved in a snapshot for future recall.
In April 2012, the source tree for udev (a device manager for the Linux kernel, which handles the /dev directory and all user space actions when adding/removing devices, including firmware loading) was merged into systemd.[7]
Following its integrated approach, systemd also provides replacements for various daemons and utilities, including sysvinit, pm-utils, inetd, acpid, syslog, watchdog, cron and atd.
- is a system and service manager for Linux operating systems.
- may be used to introspect and control the state of the systemd system and service manager.
- may be used to determine system boot-up performance statistics and retrieve other state and tracing information from the system and service manager.
cgroups
[edit]Because systemd tracks processes using the Linux kernel's cgroups instead of process identifiers (PIDs), daemons cannot "escape" systemd; not even by double-forking.
Systemd does not only use cgroups, but also augments them with software containers [8]
and , two utility programs to facilitate the creation and management ofcgroups interface
[edit]Since version 205, systemd offers ControlGroupInterface, an API to the Linux kernel cgroups.[11] The Linux kernel cgroups are adapted to support kernfs,[12] and are being modified to support a unified hierarchy.[13]
systemd-ui
[edit]Systemd-ui, also known as systemadm, is a simple GTK+-based graphical front-end for systemd.[14] It provides a simple user interface to manage services, and a graphical agent to request passwords from the user. As of 2014[update] the systemadm program has received little development or maintenance in the last few years, because development focus has shifted to command-line tools like systemctl and systemd-analyze. However, systemadm remains the only graphical application for systemd management.
systemd-kcm
[edit]Systemd-kcm is a KDE control module for graphically managing systemd and related services such as logind.
* https://rthomsen6.wordpress.com/2015/07/06/systemd-kcm-1-2-0-released/
In Debian it is called "kde-config-systemd": https://packages.debian.org/sid/kde-config-systemd This package is a KDE Control Center module for the systemd daemon. It is capable of starting and stopping systemd units. In addition, it allows for the configuration of several systemd parameters.
logind
[edit]In version 30, systemd-logind was integrated, a tiny daemon that manages user logins and seats in various ways. systemd-logind is an integrated login manager that offers multiseat improvements and replaces ConsoleKit, which is no longer maintained.[15][16] For X11 display managers the switch to logind requires a minimal amount of porting.[17]
- https://dvdhrm.wordpress.com/2013/08/24/session-management-on-linux/
- https://dvdhrm.wordpress.com/2013/08/24/how-vt-switching-works/
- https://dvdhrm.wordpress.com/2013/08/25/sane-session-switching/
- XDC2013 (23 September 2013): David Herrmann - DRM Security / Video
- XDC2013 (23 September 2013): David Herrmann - Journey through 20 years of CONFIG_VT
In version 216 logind learned a new session type "web", for use in projects like Cockpit which register web clients as PAM sessions.
- may be used to introspect and control the state of the login manager systemd-logind.
- – the journal service configuration file configures various parameters of the systemd login manager.
GNOME integration
[edit]In the interest of enhancing the interoperability between systemd and GNOME, Lennart Poettering asked to consider making systemd an external dependency of GNOME 3.2.[18]
In November 2012, the GNOME Project concluded that basic GNOME functionality should not rely on systemd.[19] However, in contradiction of this statement, GNOME 3.8 introduced a de facto dependency on systemd-logind by introducing session management behaviors which depend on how systemd operates. While the developers of Gentoo attempted to adapt these changes in OpenRC, the implementation contained too many bugs, causing the distribution to mark systemd as a dependency of GNOME.[20][21]
At the same time, GNOME is pushing further integration of systemd.[22] For Mutter version 3.13.2, mutter-launch was replaced with logind integration.[23]
journald
[edit]systemd-journald is a daemon doing logging. The system administrator may choose whether to log system events with systemd-journald or syslog-ng or rsyslog. In version 216 LZ4 replaced xz for larger journal fields.
- may be used to query the contents of the systemd(1) journal as written by systemd-journald.
- – the journal service configuration file configures various parameters of the systemd journal service
networkd
[edit]In version 209, networkd was integrated, which provides abilities for systemd to perform various network configurations; as of this version, support is limited to statically assigned addresses and basic support for bridging configuration.[24][25][26][27][28]
resolvd
[edit]systmed-resolvd is a pretty complete caching DNS and LLNMR stub resolver since version 216.[29]
timesyncd
[edit]In version 216 systemd-timesyncd has been updated to automatically acquire NTP server information from systemd-networkd, which might have been discovered via DHCP.
readahead
[edit]systemd-readahead-collect.service is a service that collects disk usage patterns at boot time.[30]
TODO
[edit]Libraries
[edit]A new library systemd-terminal has been added that implements full TTY stream parsing and rendering. This library is supposed to be used later on for implementing a full userspace VT subsystem, replacing the current kernel implementation. Cf. kmscon.
Controversy
[edit]Adoption of systemd has been very controversial. Linus Torvalds and Theodore Ts'o have expressed reservations about the systemd philosophy and especially the attitudes of the key developers toward users and bug reports.[31][32] Articles run in Linux Advocates have characterized systemd as "the new PulseAudio," and as "an accident waiting to happen."[33][34] One Fuduntu contributor is quoted as stating that systemd has limited software choice:[33]
Systemd, whether by design, or circumstance, is largely becoming non-optional. Inclusion of core technologies such as dbus and udev are reducing choice for linux users and developers, rather than expanding them—which is the very antithesis of the idea of Free/Open Source software.
In a 2012 interview, Slackware's founder Patrick Volkerding also expressed reservations about the systemd architecture:[35]
Concerning systemd, I do like the idea of a faster boot time (obviously), but I also like controlling the startup of the system with shell scripts that are readable, and I'm guessing that's what most Slackware users prefer too. I don't spend all day rebooting my machine, and having looked at systemd config files it seems to me a very foreign way of controlling a system to me, and attempting to control services, sockets, devices, mounts, etc., all within one daemon flies in the face of the UNIX concept of doing one thing and doing it well.
In January 2013, Lennart Poettering attempted to address concerns about systemd in a blog post called The Biggest Myths.[36]
Eric S. Raymond declined to comment on systemd at first, but stated, "I'm aware there’s a controversy."[37] Then in a March 2014 interview on Slashdot, he expressed some concerns about the goals and architecture of systemd:[38]
I want to study it carefully because I'm a bit troubled by what I hear about the feature set and the goals. From that, I fear it may be one of those projects that is teetering right at the edge of manageable complexity – OK as long as an architect with a strong sense of design discipline is running things, but very prone to mission creep and bloat and likely to turn into a nasty hairball over the longer term.
Adoption
[edit]In May 2011, Fedora became the first major Linux distribution to enable systemd by default.[39] As of August 2014[update], Slackware does not support or use systemd, but Slackware's lead Patrick Volkerding has not ruled out the possibility of switching to it.[40]
Linux distribution | Date added to software repository[a] | Enabled by default? |
---|---|---|
Arch Linux | October 2012[41] | Yes |
CoreOS | July 2013 | Yes[42] |
Debian GNU/Linux[43] | April 2012 | Default for Debian "Jessie" 8[b] |
Fedora | May 2011 (v15)[46] | Yes |
Frugalware Linux | August 2011 (v1.5)[47] | Yes |
Gentoo Linux [c] | 2011[50][51][52] | No[d] |
Mageia | May 2012 (v2.0)[53] | Yes |
openSUSE | March 2011 (v11.4)[54] | Yes |
Red Hat Enterprise Linux | June 2014 (v7.0)[55] | Yes |
Sabayon Linux | August 2013 (v13.08)[56] | Yes |
Ubuntu[e] | April 2013 (v13.04)[58] | Planned[45] |
See also
[edit]- BusyBox – stripped-down Unix tools in a single executable file
- Linux startup process
- systemd-readahead
Notes
[edit]- ^ Dates are for the general availability release.
- ^ The Debian Technical Committee voted to make systemd the default system management daemon for Linux in the "jessie" release.[44] As a result, Ubuntu founder Mark Shuttleworth announced that Ubuntu would migrate towards it from its self-developed competitor Upstart for a future release, in order to maintain consistency with the distribution that Ubuntu is based upon.[45]
- ^ systemd is supported in Gentoo as an alternative to OpenRC, the default init system[48] for those who "want to use systemd instead, or are planning to use Gnome 3.8 and later (which requires systemd)"[49]
- ^ As of 2014, Gentoo requires systemd when selecting the GNOME profile or installing GNOME.
- ^ Ubuntu's development documentation offers instructions on how to use systemd as an experimental option.[57]
References
[edit]- ^ a b "README", systemd, freedesktop.org, retrieved 2012-09-09
- ^ "Release v251". 2022-05-21. Retrieved 2022-05-24.
- ^ "systemd", Analysis Summary, Ohloh, retrieved 2011-06-16
- ^ a b Lennart Poettering (2012-04-21), systemd Status Update, retrieved 2012-04-28
- ^ Lennart Poettering, Kay Sievers, Thorsten Leemhuis (2012-05-08), Control Centre: The systemd Linux init system, The H, archived from the original on 14 October 2012, retrieved 2012-09-09
{{citation}}
: CS1 maint: multiple names: authors list (link) - ^ "[Phoronix] Systemd Dreams Up New Feature, Makes It Like Cron". Phoronix.com. 2013-01-28. Retrieved 2014-01-22.
- ^ Sievers, Kay, "Commit importing udev into systemd", systemd, freedesktop.org, retrieved 25 May 2012
- ^ Jake Edge (2013-11-07). "Creating containers with systemd-nspawn". LWN.net. Retrieved 2014-07-30.
- ^ "ControlGroupInterface". freedesktop.org.
- ^ "libevdev". freedesktop.org.
- ^ http://www.freedesktop.org/wiki/Software/systemd/ControlGroupInterface/
- ^ "cgroup: convert to kernfs". 2014-01-28.
- ^ "cgroup: prepare for the default unified hierarchy". 2014-03-13.
- ^ "Details of package systemd-ui in Debian "Jessie" 8". Debian. Retrieved 2014-07-31.
- ^ ConsoleKit official website
- ^ "systemd-logind.service". Freedesktop.org. Retrieved 2014-02-17.
- ^ "How to hook up your favorite X11 display manager with systemd". Freedesktop.org.
- ^ Lennart Poettering (2011-05-18), "systemd as an external dependency", desktop-devel mailing list, GNOME, retrieved 2011-05-26
- ^ Frederic Peters (2011-11-04), "20121104 meeting minutes", GNOME release-team mailing list, retrieved 2013-01-14
- ^ Vitters, Olav. "GNOME and logind+systemd thoughts". Retrieved 24 April 2014.
- ^ "GNOME 3.10 arrives with experimental Wayland support". ZDNet. Retrieved 24 April 2014.
- ^ "GNOME initiatives: systemd". Retrieved 2014-05-01.
- ^ "Mutter 3.13.2: launcher: Replace mutter-launch with logind integration". 2014-05-19. Retrieved 2014-05-28.
- ^ "Networking in +systemd - 1. Background". 2013-11-27. Retrieved 2014-02-22.
- ^ "Networking in +systemd - 2. libsystemd-rtnl". 2013-11-27. Retrieved 2014-02-22.
- ^ "Networking in +systemd - 3. udev". 2013-11-27. Retrieved 2014-02-22.
- ^ "Networking in +systemd - 4. networkd". 2013-11-27. Retrieved 2014-02-22.
- ^ "Networking in +systemd - 5. the immediate future". 2013-11-27. Retrieved 2014-02-22.
- ^ "[systemd-devel] [ANNOUNCE] systemd 216". 2014-08-19.
- ^ "systemd-readahead".
- ^ "Linux-Kernel Archive: Re: [RFC PATCH] cmdline: Hide "debug" from /proc/cmdline". 8 April 2014. Retrieved 8 July 2014.
- ^ "A realization that I recently came to while discussing the whole systemd..." 31 March 2014. Retrieved 8 July 2014.
- ^ a b Dietrich Schmitz (2013-04-13). "Systemd: The New PulseAudio". Retrieved 2014-03-19.[dead link]
- ^ Dietrich Schmitz (2013-05-01). "Systemd: An Accident Waiting to Happen One". Retrieved 2014-03-19.[dead link]
- ^ "Interview with Patrick Volkerding of Slackware". Linuxquestions.org. 2012-06-07. Retrieved 2014-03-19.
- ^ Poettering, Lennart (2013-01-26). "The Biggest Myths".
- ^ Eric S. Raymond (2014-02-15). "Namedropping "ESR"". Retrieved 2014-05-19.
- ^ "Interviews: ESR Answers Your Questions". Slashdot.org. 2014-03-10. Retrieved 2014-03-19.
- ^ "F15 one page release notes", fedoraproject.org, 2001-05-24
- ^ "I'm back after a break from Slackware: sharing thoughts and seeing whats new!". Linuxquestions.org. Retrieved 2014-03-14.
- ^ systemd is now the default on new installations, Arch Linux News, 2012-10-17, retrieved 2014-01-05
- ^ CoreOS's init system, CoreOS Inc, retrieved 2014-02-14
- ^ "systemd". Debian Wiki. Retrieved 2011-07-21.
- ^ Bdale Garbee (2014-02-11). "Bug#727708: call for votes on default Linux init system for jessie".
- ^ a b Mark Shuttleworth (2014-02-14). "Blog Archive » Losing graciously". markshuttleworth.com. Retrieved 2014-02-14.
- ^ D. J. Walker-Morgan (2011-05-24), Fedora 15's Lovelock released, The H, archived from the original on 2 August 2011, retrieved 2012-08-22
- ^ Phayz (2012-01-17), Review of 2011, Frugalware Project, retrieved 2012-08-22
- ^ "systemd".
- ^ "Installing the Gentoo Base System § Optional: Using systemd".
- ^ "Comment #210", systemd – bug #318365, Gentoo's Bugzilla, retrieved 2011-07-05
- ^ systemd, Gentoo's Documentation, retrieved 2011-07-05
- ^ systemd, Gentoo wiki, retrieved 2012-08-26
- ^ Fabian Scherschel (2012-05-23), Mageia 2 arrives with GNOME 3 and systemd, The H, archived from the original on 8 December 2013, retrieved 2012-08-22
- ^ Directory view of the 11.4 i586 installation showing presence of the systemd v18 installables, 2011-02-23, retrieved 2013-09-24
- ^ Red Hat Unveils Red Hat Enterprise Linux 7, 2014-06-10
- ^ lxnay (2013-08-12). "Press Release: Sabayon 13.08". Sabayon. Retrieved 2014-01-22.
- ^ systemd - An alternative boot manager, Ubuntu Wiki, retrieved 2013-06-24
- ^ "Package Search Results - systemd". ubuntu.com. Retrieved 2014-02-17.
External links
[edit]- Official website
- systemd, 0pointer
- cgit, freedesktop
- systemd project, Fedora
- The road forward for systemd, LWN
- Interface Portability And Stability Chart, freedesktop
- Init systems comparison: part 1 and part 2 (LWN.net)
rm