4 ms·
systemd is better than "fine" or "great" - systemd is awesome. systemd is a real power tool and the more I learn about it the better I like it. When you need
by andrewstuart 4y ago
systemd is better than "fine" or "great" - systemd is awesome.
systemd is a real power tool and the more I learn about it the better I like it.
When you need to get something done, systemd often as not has your back.
Simple example - recently I needed to ensure a given service could not send more data than a given limit. Easy - systemd includes traffic accounting on a per service basis - all I needed to do was switch it on with "IPAccounting=yes" and read the values and kill the service if its data egress was beyond my maximum.
This is just one simple example of how systemd makes life easy - there's many, many more examples.
For example did you know that systemd/nspawnd lets you do virtualisation with all the benefits of containerisation such as resource/memory optimisation? The more you dig, the more you'll find to like about systemd.
systemd haters gonna hate but show me something better.....
If anything, systemd influences what modern Linux is so heavily that modern Linux should be referred to as linux/systemd instead of gnu/linux.
- andrewstuart3 4y agoThose are common arguments for systemd, similarly to other batteries-included software. But the opponents of such software (and of systemd in particular) tend to expect the whole system being like that: having all the useful components playing nicely together, and easily swappable in addition to that. Which is harder to achieve, but supposed to be nicer.
- andrewstuart 4y agohttps://images.news18.com/ibnlive/uploads/2021/12/spiderman-meme-16401651633x2.png https://images.news18.com/ibnlive/uploads/2021/12/spiderman-... It's like I'm in a hall of mirrors...... It's the integration of systemd, the common approach that yields the giant payoff. I understand the "lots of independent utilities" Unix philosophy but systemd's consistent broad scope yields increasing benefits.
- sph 4y agoSometimes a monolith is better. See also vim vs Emacs.
- customkitchen 4y agoYou can still do that with systemd though. If you want to swap out some components then just don't use those features in your unit file, instead have your unit file run a shell script that uses your components. The "opposition" to systemd has never made any sense to me on any level.
- andrewstuart3 4y agoCan't speak for the whole systemd "opposition", especially since I'm not really a part of it, but I think it is rather a matter of multiple implementations sharing standardized interfaces, versus a single implementation with its custom interfaces: compare systemd's timers to cron implementations sharing crontab format, or systemd journal to syslog implementations, sharing its standardized protocols. With a single interface and different implementations, you can easily swap those, but with a monolith like systemd you are mostly stuck if the software actually makes use of it. I think there are other reasons why people dislike systemd (and recalling a few articles with people ranting about it; I think there are many around), and usefulness of standards and alternatives/choice wouldn't necessarily make sense either, but here is at least one of the ways to view it. As for init scripts, I think it can be even a bit nicer than that, since systemd provides some backward compatibility with sysV-style init scripts [1], but in that systemd acts almost like a swappable implementation. [1] https://www.freedesktop.org/software/systemd/man/systemd-sysv-generator.html https://www.freedesktop.org/software/systemd/man/systemd-sys...
- vetinari 4y ago> compare systemd's timers to cron implementations sharing crontab format, or systemd journal to syslog implementations, sharing its standardized protocols. Well, but then you must be aware that you are leaving lot of effectiveness, unification and deduplication on the table. See, many people think of systemd as if it was init replacement that grew timer support too. They are looking at the wrong level of abstraction: it is an event machine, that manipulates units when events happen. That event might be boot to certain runlevel, timer, hotlplug, incoming request on socket, dbus activation, whatever. By cutting and dragging out one of the event handlers outside into special-cased, custom flow component that duplicates existing functionality anyway, you are ending up with a worse system.
- eternityforest 4y agoThe trouble is that the system as a whole becomes a product that requires testing and bugfixes. When things are swappable, every system is unique and has only been built a few times. Plus, it creates fragmentation instead of concentrating efforts on one project. It's easy to get situations like "I need feature F but that's only in B, we use A because C needs it". Use of any features outside the lowest common denominator quickly makes things nonswappable.
- bamboozled 4y agoSure but it’s really fun to complain about systemd though
- up2isomorphism 4y agoIt seems LP squad is getting old enough to publicly show their victory in the cooperate space . Even considering that, to call it “awesome” is still cringing. No, Systemd is anti-Unix and unnecessary. Its demand never comes from the community and many non-systemd distributions work much better than redhat, like alpine/gentoo/Slackware.
- dilyevsky 4y agoThe real question though is can it read emails?
- shrubble 4y agoWhat is the relationship between the users 'andrewstuart', 'andrewstuart2', 'andrewstuart3', and 'customkitchen', if any?
- andrewstuart 4y agoI (andrewstuart), share a name with another HN user (andrewstuart2) - we have been aware of this for years. I saw he was commenting in the thread on this page and I said "Hey we're in the same thread!" Then some other HN joker created an account called andrewstuart3 and joined in the thread. Now you know! I do not know what customkitchen is.
- eternityforest 4y agoEven more than just being awesome itself, it's a lot of the reason I think Linux is great. Without it I'd still love Linux, but I'd just think of it as "The free OS everyone uses", something that's good because it works, but I'm not sure there would be that many actual features I'd point to and say "I love that!".