News for hackers. Stuff that matters.
Re:Systemd by Example by morganvachon on Tuesday January 25, 2022 @04:58PM (#30078704)
Agreed, I have generally avoided systemd as I don't feel it's fully baked yet (not trying to start a flame war, that is just my experience and I'm sure it's fine for others). Still, I need to really learn it both for when I am ready to use it daily and just to have it in my wheelhouse for supporting others. A guide like this seems like a great way to go "hands on" without spinning up an instance and fumbling through it blindly.

Hopefully this guide will stay up to date given the "move fast, break things, wontfix" approach the systemd authors currently have with the project.

Re:Systemd by Example by throwawaysysd on Tuesday January 25, 2022 @10:57PM (#30081510)
>given the "move fast, break things, wontfix" approach the systemd authors currently have with the project.

I don't understand where anyone is getting this impression from, that describes the opposite of my experience with systemd. The authors publish stability guarantees, and they have done so for several years: https://systemd.io/PORTABILITY_AND_STABILITY/

Re:Systemd by Example by eternityforest on Wednesday January 26, 2022 @06:14AM (#30084137)
I love systemd both for it's actually functionality and the fact that it's almost like the flagship of a whole movement to make Linux more consistent and integrated and less of a pile o scripts.

But for some reason, the authors occasionally say something that feels completely out of place for the project. They fix important stuff eventually, but sometimes it gets confusing to watch them discuss it.

The "Invalid username runs a service as root" bug is a good example of something that they didn't seem to take seriously. But it's fixed now.

Also, PulseAudio. Pulse is good. It's not that great and was deployed before it's ready on some distros. The whole Pulse/Jack split that is only just now being fixed was annoying.

Some people might still judge Poettering based on 10yo bugs in Pulse rollout?

Re:Systemd by Example by throwawaysysd on Wednesday January 26, 2022 @10:35AM (#30086729)
After a lot of recent events, I don't feel comfortable judging any open source project on the speed at which they fix bugs or the way they communicate about it. In open source there is no obligation for anyone to fix anything or communicate anything. To me it's a miracle when anything gets fixed at all. It feels like the community is still largely held together with duct tape and string.
Re:Systemd by Example by eternityforest on Wednesday January 26, 2022 @06:00PM (#30093338)
Yeah, I just expect all software to be buggy. To be honest my main way of evaluating software is by Googling stuff like "X ate my data" or "X stopped working" and seeing how many major complaints people have, relatively to how many users there are.

I think the duct tape and string feeling comes from the obsession with smallness and modularity and people trying to make "Linux not be like windows".

Half the FOSS scene WANTS things to be taped together because their main thing is random tinkering.

Re:Systemd by Example by morganvachon on Wednesday January 26, 2022 @07:51AM (#30084853)
A guarantee is only as good as the willingness to honor it. There are great ideas and some good implementations in systemd, but when the people behind it have a pattern of refusing to fix (and sometimes even acknowledge) show-stopping bugs, it makes me apprehensive about relying on it.

Again, I didn't want my comment to start a heated discussion about systemd, but inevitably that happens. If I had praised it someone else would have come along to tell me how much it sucks (I don't think it sucks, personally, I just have issues with its current development process).

Re:Systemd by Example by SSLy on Wednesday January 26, 2022 @08:07AM (#30084959)
You can't just leave accusations like that without links to concrete issues. The discourse becomes Kafkaesque.
Re:Systemd by Example by morganvachon on Wednesday January 26, 2022 @10:02AM (#30086294)
https://lists.freedesktop.org/archives/systemd-devel/2014-Ma...

https://bugs.freedesktop.org/show_bug.cgi?id=76935#c10

----- Adding "hacks" but not testing to ensure said hacks don't cause issues:

Lennart Poettering 2014-02-21 13:49:25 UTC

To make this work we'd need a patch, as nobody of us tests this.

Comment 3 Michael Shigorin 2014-04-04 06:30:57 UTC

Hope all of you either test all the combinations or do not break at will those you don't have the time and inclination to test, at least in system-wide components that are not specific to systemd, while pushing the latter hard.

Comment 4 Lennart Poettering 2014-04-04 14:56:43 UTC

Well, cgroups-less kernels are explicitly not supported by systemd. However we added some hacks to allow it to boot to a certain degree even if a lot of things will not work correctly afterwards. In this mode when you boot you will actually get a warning on screen and bootup is delayed by 10s to make sure the user understands this.

Now, this mode recently broke, and it will segfault early on. I am happy to take a patch to 'fix' this again, but I will not work on this as i dont run kernels like this, and as mentioned its not really supported anyway...

Another option is to simply be honest amd stop supporting in entirely, and refuse booting completely. And I figure this is what I will eventually do if nobody cares enough to send me a patch to fix that segfault.

https://bugs.freedesktop.org/show_bug.cgi?id=74589

Re:Systemd by Example by throwawaysysd on Wednesday January 26, 2022 @10:30AM (#30086664)
I can't figure out what the problem here is, are you trying to run systemd with a kernel with cgroups compiled out? I don't see how that's a show stopping bug, from the discussion there it was never supported.
Re:Systemd by Example by morganvachon on Wednesday January 26, 2022 @10:53AM (#30086992)
No, I'm not. I'm satisfying the other person's request for sources with examples I've come across in the past. In this case it was not about cgroup-less kernels but about Poettering's and Sievers' attitudes towards fixing the issue.

This is why I don't like to talk about systemd on any internet forum; it always leads to people like you ready to attack any position around the subject, and me having to defend a position I don't even hold (I don't think systemd sucks, I think its developers could do better though). I am done with this thread.

Re:Systemd by Example by throwawaysysd on Wednesday January 26, 2022 @11:40AM (#30087744)
I'm not attacking you or asking you to defend a position, I'm asking for clarification because I legitimately do not understand what the issue is. I totally agree with you, it is not helping anyone to become defensive over this. I don't understand what the attitude was, it seems to have been fixed 8 years ago? Did I miss something?
Re:Systemd by Example by Foxboron on Tuesday January 25, 2022 @05:10PM (#30078835)
>Hopefully this guide will stay up to date given the "move fast, break things, wontfix" approach the systemd authors currently have with the project.

The core dependency principles around targets, services and startup does not see a lot of change, so this concern is not really realistic. You'll see more of this around the supporting utilities (networkd, resolved, and so on).

Re:Systemd by Example by rodgerd on Tuesday January 25, 2022 @09:34PM (#30080970)
> break things, wontfix

In fairness, quite often I've found this is often a case of exposing existing brokenness rather than creating new problems, but it doesn't make it any more comfortable when it happens.

Re:Systemd by Example by folkhack on Tuesday January 25, 2022 @06:25PM (#30079600)
When you admit to needing to learn something in the same breath as throwing shade it completely undermines the shade you were trying to throw.
Re:Systemd by Example by dane-pgp on Tuesday January 25, 2022 @07:29PM (#30080120)
If you found yourself locked in a prison, you might suddenly be motivated to learn how to survive there, even if you're not a big fan of imprisonment.
Re:Systemd by Example by saurik on Tuesday January 25, 2022 @07:13PM (#30080014)
That doesn't follow. If anything, I would expect knowing, for practical reasons, you have to learn something you think is dumb would make you even more angry about it, not less... or, maybe, you just believe something being either popular or common means it must be good? :(
Re:Systemd by Example by throwawaysysd on Tuesday January 25, 2022 @09:12PM (#30080808)
That doesn't seem very practical. Viewing something as dumb before learning anything about it is holding a prejudice towards it.
Re:Systemd by Example by dane-pgp on Wednesday January 26, 2022 @07:36AM (#30084758)
It's reasonable to have the opinion that juggling chainsaws is a dumb idea, even before you've learnt the techniques for making it slightly less dangerous.
Re:Systemd by Example by throwawaysysd on Wednesday January 26, 2022 @09:39AM (#30085933)
Is that really any dumber than doing any similarly dangerous industrial jobs that require a lot of training? Or something else dangerous in entertainment like being a Hollywood stuntman, or being Siegfried & Roy? I'm sure you could get a lot of money for having that skill if you did it in the right place.
Re:Systemd by Example by Klasiaster on Tuesday January 25, 2022 @05:39PM (#30079129)
It's on version 250. How many stable releases do you need to feel that it is "fully baked"? The software is of course evolving and new features are added but breaking changes are rare.
Re:Systemd by Example by guywhocodes on Tuesday January 25, 2022 @07:30PM (#30080130)
The number doesn't mean anything really, give me the access control and we can have a thousands times more in a week.
Re:Systemd by Example by Klasiaster on Tuesday January 25, 2022 @07:51PM (#30080265)
The number has a meaning because it is the result of the release process at the end of a development cycle
Re:Systemd by Example by guywhocodes on Tuesday January 25, 2022 @10:45PM (#30081423)
That will still be true when I take it to 250,000. The development cycle will just be shorter