Live data from Hacker News

Systemd-free Devuan announces its first stable release candidate 'Jessie' 1.0.0

linux.slashdot.org

31–40 of 53 posts

Re: Systemd-free Devuan announces its first stable release candidate 'Jessie' 1.0.0

#31
post #18

Earlier quoted context omitted.

As I pointed out at https://news.ycombinator.com/item?id=14169188 , there's a discussion of MySQL on the systemd-devel mailing list right now. Clearly some people in that discussion are not familiar with MySQL. Clearly some of the people in this discussion are not familiar with MySQL either. To help combat this ignorance, here are some actual systemd units: * https://github.com/MariaDB/server/blob/10.1/support-files/…

Yeah, legacy code is hard, sometimes, and sometimes complexity can't be hidden entirely. The initscripts for MySQL/MariaDB are still orders of magnitude larger than these (unusually large) systemd unit files. Managing complexity is hard. SystemD helps. More modern service design, and simpler services, helps (compare/contrast Apache startup vs nginx or caddy, or MySQL vs MongoDB; sure, the newer options do less, but t…

You really should take the tack of learning about this subject rather than following rubbish numbers pulled out of thin air with more rubbish numbers pulled out of thin air. Here's the System 5 rc script for MariaDB. At 453 lines it is not even one order of magnitude larger than the systemd service unit, let alone orders of magnitude.

* https://github.com/MariaDB/server/blob/10.1/support-files/my...

I recommend actually learning about the reality of MongoDB. For starters, the systemd service units supplied in the likes of Ubuntu and Debian do not set any of the settings recommended for MongoDB by its authors, so here (as in so many cases with systemd service units in the wild, alas) shortness actually equates to not doing things properly.

* http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/vivid/mo...

* https://sources.debian.net/src/mongodb/1:3.2.11-2/debian/mon...

* https://docs.mongodb.com/manual/reference/ulimit/#linux-dist...

Another example of such is WSO2 Carbon, with a 14-line system service unit from one source that gets things grossly wrong.

* http://jdebp.eu./FGA/systemd-house-of-horror/wso2.html

I recommend actually learning about Caddy, too. Ironically, the subject of its service unit came up here on Hacker News only a day ago. It is 43 lines long, some 6 times the length of the supposed 7-line systemd service unit being bandied about here, and not as far different from those for MySQL and Percona as you imply; and it does not attempt to be "more modern" as you claim, as it entirely lacks the socket unit that would make it more in line with the systemd way of doing things.

* https://news.ycombinator.com/item?id=14167704

The idea that this is "modern service design" is borne of not knowing the subject, too. The sort of design changes recommended by the systemd people are in fact pretty much the same sort of design changes recommended by IBM in 1992 for services managed by the System Resource Controller and recommended by quite a lot of other people since, including Apple and ... well ... me for many years. Whilst this is good service design, it is not "modern", and not in any way unique or original to systemd. To further alleviate the ignorance of MySQL as well as demonstrate how this is far from "modern" and not something that one gets to claim for systemd service units, I point out that people were running mysqld without mysql_safe, in the very way that the systemd people are by all appearances just learning about in their mailing list discussion, under daemontools in 2002. I strongly suspect that that wasn't even the earliest occasion of that.

* http://jdebp.eu./Softwares/nosh/mariadb-and-mysql.html#Promp...

Re: Systemd-free Devuan announces its first stable release candidate 'Jessie' 1.0.0

#32
As someone out of the loop with any of this (I've always just been content with using Debian as-is, and I haven't done much work with systemd), can someone explain why systemd is as bad as it seems to be? As in, why is it so bad that an entire major Linux distro was forked and created with the seemingly sole purpose of removing this program?

Re: Systemd-free Devuan announces its first stable release candidate 'Jessie' 1.0.0

#33
post #30

Earlier quoted context omitted.

You don't maintain an init script. You write it once. It doesn't do anything but run a program with an argument. There is no need to modify it except once every few years if your system or your application changes significantly in how it is started or stopped. On Slack, the init scripts range from 6 lines (rc.font) to 445 lines (rc.S). Mean: 105, Median: 64, Mode: 56, 36, 48. BSD probably has even less complicated in…

However, few sysv init scripts are the same structure. Each one is written by different people, who do things slightly different ways (and occasionally get things slightly wrong), and on different distros they use different tools. Debugging sysv init scripts is more complex than debugging a systemd unit file. One example that neither camp does well is 'status'. Systemd is too verbose, but at least always the same sta…

If you don't like the internal structure, you can change it! If you don't like the output formatting, you can change it! All with a few lines of shell script, immediately, no compiling, no rebooting!

You can't say the same of systemd. It has to be whatever systemd has compiled in. (Which, by default, is terse status, followed possibly by journal data, or just system status if no units are available) Sysctl status also loads a unit at run time, and then may unload it afterward, meaning it is not useful to see if a unit was already loaded. It also uses a UTF colored dot, combined with different lines that can be interpreted different ways. In other words: it is a complex arrangement of information. And for machine output, you need the 'show' command, and more options.

With sysv, you ask it for status and it tells you if it's running, if the script supports status. Clearly a complicated mess.

Your last comments don't make sense. Sysv init scripts don't have to "find" a program any more than any other method of executing a program. And all init scripts I can think of are fire-and-forget, as much as systemd or any other init program is. The only thing they don't do is continue to try the same operation over time or wait around for a dependency, if that's what you meant (which Sysv scripts aren't really supposed to do, but inittab supports it anyway)

I'll do you one better on your first comment: ALL Sysv init scripts are a different "structure" internally. Even in the way they are used! The reason is, they're just scripts. Outside of inittab, there is no real standard for how they work, so each system makes them work however they wish. They can write them so they're all the same, or all different, and make them called the same or different, and give them different features, or no features. This is why some people love Sysv - it is totally flexible. You can make it do anything you want, and all you need to know is csh.

With other apps (not just systemd, but lots of things) complicated custom domain-specific languages are invented to do little things, like change configuration files' permissions, or send a file somewhere. Csh/Bash allows you to do the same, except it's a lingua franca that is compatible with every Unix-like operating system. It's interpreted, it's flexible, it's portable, it's backwards compatible, it's composable, it's extendable.... I mean, this is really an amazing thing that no other language or tool can claim (other than web browsers). Any problem you have with Sysv you can fix it within Sysv, without requiring compiling code, or even rebooting. I know i'm beating a dead horse here, but I just can't see how anyone would want to throw all this amazing power away or see it as limiting.

If you wanted, you could write a systemd clone in bash, and make service/unit files out of bash. I don't know why nobody has done this yet, but probably because it would be self-defeating.

Re: Systemd-free Devuan announces its first stable release candidate 'Jessie' 1.0.0

#34
post #28
post #18

Earlier quoted context omitted.

As I pointed out at https://news.ycombinator.com/item?id=14169188 , there's a discussion of MySQL on the systemd-devel mailing list right now. Clearly some people in that discussion are not familiar with MySQL. Clearly some of the people in this discussion are not familiar with MySQL either. To help combat this ignorance, here are some actual systemd units: * https://github.com/MariaDB/server/blob/10.1/support-files/…

Counting empty lines and comments is hardly the way to make your point. The mariadb unit file you linked to is only 34 actual lines, the mysql unit file only 22, percona 23. And if you're writing your own unit files rather than ones for public consumption, you probably won't include lines like "Documentation=" and some other minor args.

Actually, counting lines, whether empty, comment, or otherwise, very much is the way to make the point. The reality of actual service units that people write is not anything like the picture that was being painted. You erroneously think that the point is that short is good and long is bad, rather than what it actually is, which is learn the subject and don't make facile arguments based upon rubbish numbers plucked from thin air. Actually looking at reality and counting, rather than pulling the number 7 from a hat, is part of that point.

I recommend reading the design of the Mewburn rc system, http://jdebp.eu./FGA/run-scripts-and-service-units-side-by-s... , and some of the entries in the systemd House of Horror. This whole "It's just writing 7 lines and it's easy!" argument falls apart when one looks at the reality of short service units that are either grossly wrong or turn out to be underpinned by the very things that their lengths are being compared to (which also means that it is still those rc scripts that are being used and maintained by software authors -- from 1997 in the example of apachectl), real world service units that are not short, other systems of long standing that are equally concise, and -- yes -- the reality that people include commentary for maintainability.

One of the amusing things about this argument that is of particular relevance to the Devuan release is that back when Devuan was announced someone put up a "fork Fedora" WWW page criticizing the Devuan people, with a systemd service unit side by side with a van Smoorenburg rc script. It is sad to note that few people observed that the systemd unit described just one service, whereas the van Smoorenburg rc script ran two. Since you are on the subject of commentary, I invite you to observe which of the twain included comments and which did not, as well, and determine what point the "fork Fedora" people were in fact demonstrating. (-:

Re: Systemd-free Devuan announces its first stable release candidate 'Jessie' 1.0.0

#35
post #27
post #20

Earlier quoted context omitted.

> I'm glad the project exists and I hope it's stable enough to be adopted by companies in the future - my fear is that debian/rhel are entrenched now though. It's not just debian/ubuntu/rhel, almost everyone has moved to systemd, even Arch Linux and Gentoo. As much as I agree with the ideas behind Devuan, knowing and understanding all the intricacies of systemd is now required knowledge for anyone doing Linux-based s…

I have a standing policy regarding systemd. It's fine for my desktop and laptop, it's not fine for my server. My servers (generally speaking) do one thing and that thing absolutely can't be mucked with, systemd does a lot of what I would consider mucking .. binary complexity and weird integration I seriously dislike. But it's actually beneficial on a desktop system. My friends who have learned systemd are basically t…

> I take exception to that statement entirely, this is open source, the land where you can replace your kernel with a BSD one and continue trucking with GNU ultilities

Fair enough. And to be fair to me, I've been thinking seriously about moving my workstation over to a BSD. But even if I do that, I'd still have to deal with Linux for work at times.

Re: Systemd-free Devuan announces its first stable release candidate 'Jessie' 1.0.0

#36
post #32

As someone out of the loop with any of this (I've always just been content with using Debian as-is, and I haven't done much work with systemd), can someone explain why systemd is as bad as it seems to be? As in, why is it so bad that an entire major Linux distro was forked and created with the seemingly sole purpose of removing this program?

I don't have issues with systemd myself, but from what I read in similar threads the problems come down to systemd being different from sysv init.

Changing old init scripts to systemd scripts is un-asked for work for many. And it is made by a polarising figure, which leads to emotional refusal.

Re: Systemd-free Devuan announces its first stable release candidate 'Jessie' 1.0.0

#37
post #20

Earlier quoted context omitted.

> I'm glad the project exists and I hope it's stable enough to be adopted by companies in the future - my fear is that debian/rhel are entrenched now though. It's not just debian/ubuntu/rhel, almost everyone has moved to systemd, even Arch Linux and Gentoo. As much as I agree with the ideas behind Devuan, knowing and understanding all the intricacies of systemd is now required knowledge for anyone doing Linux-based s…

While Gentoo supports systemd, by default it will still use init scripts.

> While Gentoo supports systemd, by default it will still use init scripts.

It's my understanding that notwithstanding the current accomodations, systemd is the future for Gentoo, is that incorrect? I'm not a Gentoo user, just what I've heard from people who are.

Re: Systemd-free Devuan announces its first stable release candidate 'Jessie' 1.0.0

#38
post #32

As someone out of the loop with any of this (I've always just been content with using Debian as-is, and I haven't done much work with systemd), can someone explain why systemd is as bad as it seems to be? As in, why is it so bad that an entire major Linux distro was forked and created with the seemingly sole purpose of removing this program?

This ground is covered in the duplicate Hacker News discussion: https://news.ycombinator.com/item?id=14167935

Re: Systemd-free Devuan announces its first stable release candidate 'Jessie' 1.0.0

#39
post #37

Earlier quoted context omitted.

While Gentoo supports systemd, by default it will still use init scripts.

> While Gentoo supports systemd, by default it will still use init scripts. It's my understanding that notwithstanding the current accomodations, systemd is the future for Gentoo, is that incorrect? I'm not a Gentoo user, just what I've heard from people who are.

where did you read that? I thought they were sticking with openrc.

Re: Systemd-free Devuan announces its first stable release candidate 'Jessie' 1.0.0

#40
post #37

Earlier quoted context omitted.

While Gentoo supports systemd, by default it will still use init scripts.

> While Gentoo supports systemd, by default it will still use init scripts. It's my understanding that notwithstanding the current accomodations, systemd is the future for Gentoo, is that incorrect? I'm not a Gentoo user, just what I've heard from people who are.

It is my observation as an outsider to Gentoo and Arch that the people who use them are not wholly opposed to everything not systemd (or OpenRC).

* http://repo.or.cz/archnosh.git

* https://wiki.gentoo.org/wiki/Nosh

Post reply on HN