systemd is the best example of Suck.
There is a menace which is spreading like a disease throughout the Linux world, it is called systemd.
Short Historical Summary
systemd is a replacement for the standard init command, which normally runs as process id 1 on initialisation of a UNIX bootup. There has been a movement, especially around the Red Hat-related developers to copy Microsoft Windows and all of its features. Now this interpretation of how a userspace should look like is implemented and was introduced with big criticism and change in the Open Source world into many distributions. The debacle in Debian is the best example in how to not introduce such a changing technology into a distribution.
What PID 1 Should Do
When your system boots up the kernel is executing a given binary in its known namespace. To see what are the only tasks the application running as pid 1 has to do, see sinit. Just wait for child process to reap and run some other init scripts.
The systemd Chronicles
Now follows a collection of links related to all the features systemd tries to enforce upon you as a Linux user, because »they know better«.
Please add all the links you can find! Generations after us have to know how to not do software and system development! See the wiki instructions on how to contribute to this page.
The Never Ending Part
Your link here.
Part 4
Part 3
NEWS revision 76153ad45f09b6ae45464f2e03d3afefbb4b2afe
- systemd does {,U}EFI bootload
- Should systemd's PID be changed from 1 to a negative, or imaginary, number? It now exists before the kernel itself, during a bootup. See also systemd-boot.
- systemd replaces sudo and su
- Please note the command name, machinectl and its features at the manpage. In exchange for a program which contains sudo, su and kill (and does some functions which historically ssh/telnet did), bare metal users have a tons of bloat and a lot of things to disable, if even possible, useful only to people which deal with virtual machines.
- systemd-journald can do log-rotate
- Being journal files binaries written with easily corruptable transactions, does this feature make the log unreadable at times?
- Transient units
- Temporary services, because we love to reinvent procps, forking, nohup and lsof.
- systemd does socat/netcat
- systemd-logind does sighup and nohup
- Logout is equivalent to shutting off the machine, so you will NOT have any running program after logout, unless you inform your init system.
- systemd-nspawn can patch at will any kind of file in a container
- Paired with transient units and user escalation performable remotely, this can mean that if you house VPS instances somewhere, your hosting provider has means and tools to spy, modify, delete any kind of content you store there. Encrypt everything, read your TOS.
- systemd does UNIX nice
from 2016-08-06
Part 2
- systemd locks down /etc and makes it read-only
- systemd now does your DNS
- systemd hates when you adapt your system (graphics on other than vt1)
Part 1
(If you are adding more parts, link to the right revision and not just the plain file.)
NEWS revision 3f80af378331748e1373d4c189a8e20cddb735c9
- logind should wait
- systemd was introduced to decrease the boot up time. Now that they do not understand all implications and dependencies, let us add some artifical time we found out might work for the developers laptops. More on this small world hypothesis of the systemd developers below.
- screen brightness
- Screen brightness is something that should crash your boot up when it is not working.
- hostnamed
- There really should be a process running which exposes the content of a file. Complexity is without cost.
- seqnum removed
- The sequential ordering of requests was one reason why udevd was introduced. Now remove it, because the developer laptops do not have a problem anymore.
- floppy group removed
- Because we know what is right to know about groups. This is just one example of the mass of group name dependencies systemd is adding. See sinit for how to not need such dependencies.
- sysv removed
- We have won. Now remove all remains of our defeated enemy as fast as we can. As said in the beginning of the systemd crusade against the UNIX infidels: »You can patch it out.« It is no more there.
- abnormal processes
- Now systemd is getting deep into philosophy. What is »abnormal«? Well, let us just define it. There is no technical merit to accept this.
- systemd-resolved
- Every configuration file needs its own process and service.
- Symlinks are a good way to solve all world problems.
- new is better
- The systemd development process is flawed by always assuming »new is best«.
- Network configuration should be in my init process.
- remote pid 1
- »Everything will end up having a remote API.« I wonder when systemd will understand MIME and e-mail.
- init does man
- My init process is too big, it needs its own file hierarchy and an abstraction layer to find paths.
- factory reset
- Welcome to the Windows OEM world: Factory reset for Linux! Of course it is in your init process.
- system runs runs
- Exactly. The predisposition of being able to call such a complex command does not imply the running system. Let's check it again.
- clean up directories
- There is another monster in systemd, it handles tmp files. There are just some cases before it was introduced to have to clean up a directory in the file tree. Now there are hundreds. And easily another case can be added! Of course your init process does that.
- firstboot
- »Interactive queries« pulls in many dependencies. Let us have it in every installation out there on by default. Of course in pid 1.
- journald
- This is a bit longer. Because the systemd developers were not able to contribute to any syslog daemon they had to write their own with some binary format so the principle of being able to read your log files after a critical crash was violated. To be nice invaders the old systems were allowed to order the system log through the specified mechanism. Now that they implemented our specifics, turn off the neutral syslog delivery. You will see this pattern of »now that we conquered your culture, obey« more often in systemd.
- systemd-terminal
- Why does the kernel have tty handling? So in serious situations you will be able to debug it over the last standing PIN on your motherboard. Let us remove this, run it in pid 1.
- networkd is your oppressor
- Premature optimisation of IP configurations always leads to misery.
- We do not understand broadcast
- With the growth of systemd in complexity and the new depending software the implications of the added hacks are increasing.
- Timezone hack
- systemd is too complex for such a simple transaction with the kernel. Do not inform the kernel and add another assumption which is only documented in the changelog.
- the web is a session
- For the future generations: In 2015 nearly everyone was trying to connect all you do to the web. In the UNIX model it is just a client which should be simple and integrate into the system. systemd is doing it the other way around and does integrate itself into the web.
- The discussion about why my pid 1 is handling sessions is discussed in other points.
- pid 1 does DNS
- This change adds another open door to your pid 1, adds caches, new APIs and of course it will never fail and break systemd on your initial boot.
- They are planning (2015-07) to add multicast DNS to your pid 1. Multicast DNS implies an enforced timeout to know if someone answered. systemd was about speed, you know. Look at avahi in how to ruin this concept for Linux. It has the same developer flaws as systemd: Too many forced dependencies, you need to implement its API and when it is taking over you are doomed.
- policykit
- There is a bus inside your pid 1 and if it crashes you are flawed. Exactly, there are a thousand more cases of errors that could occur and make your system unbootable. Instead of using a separation of functions, add everything to a big bus.
- Of course when you are using a misdesign like dbus you need to add interactions over the bus to add features you forgot in the initial design. Now let us have our pid 1 have to query for the permission to boot.
- »Interactive authentication« will produce you a graphical input form on your serial line.
- Calendar
- As you see, your pid 1 should handle your calendars and cron jobs too.
- utmp should go
- We have taken over your culture, now die! Another flaw in the systemd small world theory: When something is getting optional it will be removed.
- password agent
- »Interactive authentication«
- udev timeout
- Instead of patching the kernel to add a simple solution, add a hack. Only the systemd developers tell you when it is allowed to wait or sleep in userspace. The rest obey our orders!
- systemd-pm
- Power management is required on boot up.
- user systemd units
- What can go wrong when you are adding more paths that are read, parsed and executed?
- hack the reload
- First systemd was adding »better features« like socket activation to make developers use their mechanism for daemons. They hit the proprietary wall of disgust with this changelog entry. systemd is too big and you will lose your face if you change the misdesign. Now add another hack because we can do it. Big empires fall too and sadly have too many casualties when they are falling. :(
- X11 in systemd
- Of course graphics were missing in pid 1.
- complexity is purity
- You will of course need PPPoE when you do parallel bootup. Every 1000 lines of code add one critical bug you never fix.
- gateway hostname
- We rule the world so we are above IETF and IANA. Now add our own hostnames that of course won't add another assumption.
- no editor in systemd
- This one is a setback. Why is there no default editor in systemd in case of factory reset?
- 8x ctrl + alt + del
- In systemd you press eight times Ctrl+Alt+Del to trigger reboot.
- privacy policy
- For the next generations: In 2015 privacy was a big issue because of the mentioned hard-wiring between the web and software. As you can see, every commit which adds some preparation for a feature adds another intepretation of what will be a major assumption in a next release. If you handle privacy you will have some features depending on that user decision and of course the factory reset default value.
- Why didn't they use XML for /etc/os-release?
- fds cache
- We have talked about misdesign, too-big-to-fail and world domination. This is the next example of a hack that is prone to fail.
- umount -rf
- This is umount for dummies. Just do one thing – right.
- libudev will be orphaned
- With the advent of udevd there was a compatibility to its complexity called libudev. X11 uses it to query the changing devices. And of course make it a non-independent API in systemd. Why? You can guess why: Defeating the infidels.
- fsck indirections
- When there was syslog fsck did output errors to your display as easy as possible. Now add a hack to have this possible again.
- systemd-importd
- This is pure evil. Your pid 1 is now able to import complete system images over the network and show them to you as your running system. There is nothing that can go wrong.
- CGI for systemd
- The web thing has been discussed before.
- kdbus
- As of 2015-07-31 kdbus is not in the mainline Linux kernel. systemd made kdbus non-optional in its release. The kernel maintainers are still debating the kdbus ABI or possible alternatives, but if systemd depends on the current state of kdbus the kernel maintainers are faced with the hard decision to either break Fedora userspace or accept the current kdbus proposal into the kernel with its security and maintainability issues. This is the best example how systemd is forcing you into decisions. Of course if you are a mindless bureaucrat it helps you to keep your job.
- readahead removed
- The first thing swallowed in on Fedora was readahead. Now that (of course!) everyone is using an SSD (at least the developers of systemd do that) it can be removed. Why was it there? Is it possible to make it a separate tool again? There's no time for that, we are implementing new features.
from 2015-07-31
Practical systemd
Here is what happens on a stock Arch Linux system, powered by systemd, when a non-root user tries to restart the system:
$ reboot
Failed to set wall message, ignoring: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Failed to reboot system via logind: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Failed to talk to init daemon.
In contrast, here is the equivalent error message on a system powered by runit:
$ reboot
init: fatal: unable to create /etc/runit/stopit: access denied
And on the oldest and best, Slackware:
$ reboot
reboot: must be superuser.
systemd is driving "just google the problem" attitude, because how the hell are you expected to troubleshoot this kind of error otherwise?