by dsr_ · 8y ago · 0 comments
The claimed advantages of systemd are mostly relevant, IMHO, for mobile devices that change configuration often. It brings no particular advantage to servers or desktops, unless you tend to swap out lots of peripherals on your desktop.
The disadvantages are partially political -- systemd tries to take over every job it can; the originator has made it clear that his vision is for every system function to be handled by systemd -- and partially philosophical: it used to be the case that most subsystems were independent of each other, so that they could be replaced more or less easily if the sysadmin had different needs.
The current stable Debian still makes it possible to run a different init system with just a line of package installation and a reboot.
Systemd provides huge advantages for administering desktops and servers as well. I'd actually go so far as to say those are the main reasons that systemd won (it's the default init system for all of the top ten Linux distributions by marketshare).
Can you list some of them?
Seeing the logs of every service is also trivial since it's standardized. No more spelunking through /var/log or some random location.
There's also other parts I'm probably forgetting right now, but in general having a standard interface for service interaction is really, really useful.
Sometimes I get the impression that Linux folks underestimate the benefits of standardization. For example there's still no good, standard way to check the exact name and version of a distribution. If they can't agree about something as banal as that... (I think there is a convergence towards /etc/os-release, but when was the first distro launched? 1992? :) )
Unless you expect anything but most trivial use cases, e.g. some user-owned directory under /var/run (/run). Then you need to wild-guess at what combination of options needs to be set. Good thing that those options are at least described in docs.
> Seeing the logs of every service is also trivial since it's standardized. No more spelunking through /var/log or some random location.
syslog already was standard. We gained nothing really from journald.
lsb_release -a?
(lsb = Linux standard Base)
I was initial skeptical about their benefit - after all, an init script is just shell, it can be debugged literally with `sh -x`.
But that also means a) people write/ship fucking terrible init scripts, mostly because b) it's not necessarily simple to write an init script in pure shell.
The problem with systemd is the politics and the project's approach to the community (including their self-defined role/goals).
* http://uselessd.darknedgy.net./ProSystemdAntiSystemd/
* http://blog.darknedgy.net/technology/2015/09/05/0/
* http://jdebp.eu./FGA/run-scripts-and-service-units-side-by-s...
But note that unit files along with their PID 1 cannot be debugged now. Which is a big step backwards.
(It should be noted that while our company runs an awful lot of 1st party stuff, what our team works with is exclusively 3rd party stuff over which we have precisely no control)