保存サイトでアーカイブしました。 hozonsite-1.3.0
トップページへ
保存サイトでアーカイブしました。Archived with Hozon Site.
トップページへ To toppage
Systemd – MX Linux

By: Jerry3904

Date:

MX Version: MX-14, MX-15, MX-16, MX-17

Section: System

Systemd

NOTE: this page treats the treatment of systemd in MX Linux. For an overview of systemd itself, see Systemd overview

On this page:

MX Linux ships with systemd present but sysVinit is still the default init system by default. Thanks to the systemd-shim system, users can choose to boot installed systems whichever way they choose.

Background

Systemd is an init & service manager, largely written by the developers of pulseaudio & udev.
It is more integrated than prior init systems, and can better do parallel operations during startup.
Its service manager and dbus implementation are integrated in the init system, so they all run under PID1 (the first program ID)

Obviously there are strong disagreements whether this is a good idea or not. Traditionally the init program running under PID1 was as small as possible so there was less that could go wrong which made your system unbootable. Also configuration files & log files from these processes were fairly simple text files for ease of troubleshooting. Systemd violates these traditions. Logs are binary files by default. Boot dependencies are taken care automatically instead of manually in config files.
Arguably it adds functionality e.g. in better control of the state of services, and faster boot times because of the dependency optimization.

The systemd argument is largely an argument about the Unix philosophy:

Write programs that do one thing and do it well.
Write programs to work together.
Write programs to handle text streams, because that is a universal interface.

Some people feel that Systemd doesn’t follow that philosophy very well.

Finally, which init system to use is by no means an open and shut case for many people. For now, MX Linux still gives users the choice.

Enabling systemd

When the GRUB screen is displayed at the very beginning of the boot process, click on Advanced options… and select to use systemd. Use MX Boot Options to make this the default.

You can remove the sysVinit option entirely by installing systemd-sysv. That will replace /sbin/init with a symlink to systemd. Remove the package to revert to the stock behavior. The only disadvantage to a systemd-only setup is that the MX live system doesn’t work 100% with it (snapshot and the live usb persistence features).

——————–

v. 20220417

MX Linux