News for hackers. Stuff that matters.
Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by Hackbraten on Thursday October 01, 2020 @02:54PM (#24654784)
Please add (2014) to the title.
Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by gHosts on Thursday October 01, 2020 @04:53PM (#24656045)
Very early April 2014...
Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by kreetx on Thursday October 01, 2020 @05:17PM (#24656225)
I wonder why we're seeing this at all, is it relevant?
Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by kreetx on Saturday October 03, 2020 @10:22AM (#24672258)
Instead of down-voting, how about answering the question? :)
Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by kanox on Thursday October 01, 2020 @04:58PM (#24656086)
Nowadays systemd prefixes all the arguments it reads from /proc/cmdline. This is the correct approach, the kernel owns it's own cmdline, and if other components want to use it they should namespace themselves.

It apparently still interprets the global "debug" flag as well: https://www.freedesktop.org/software/systemd/man/systemd.htm...

Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by anonzzz on Thursday October 01, 2020 @06:07PM (#24656668)
This gives me a warmer feeling watching OpenRC boot on my laptop.
Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by sys_64738 on Thursday October 01, 2020 @06:49PM (#24656988)
One day systemd will become part of Emacs
Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by Angeo34 on Thursday October 01, 2020 @04:52PM (#24656041)
Lennart is my personal superhero.
Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by swiley on Thursday October 01, 2020 @05:12PM (#24656185)
It's about ideas, not people.
Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by dsr_ on Thursday October 01, 2020 @05:03PM (#24656123)
Sadly, they let it continue.

Systemd's primary selling point is that it has already convinced distros to use it.

It inserts bizarre delays.

It makes debugging harder.

It makes logging harder.

The documentation stinks.

It infects other systems (libvirtd, GNOME) and convinces them that SystemD is a necessary dependency.

In short: SystemD doesn't play well with others. It is not a good citizen.

Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by floren on Thursday October 01, 2020 @05:06PM (#24656148)
It may be Stockholm Syndrome but I have come to appreciate systemd-style unit files for services. Being able to say "here's the binary, run it as this user, restart it if it exits" beats copying & tweaking bash scripts which is how I dimly remember sysv init working. Doubtless other more recent init systems have similar capabilities.

Anything to do with systemd logging is a goddamn nightmare though. It loves to tell you that a service has failed to start, but doesn't try to do anything like show you stderr from the process that might help debug.

Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by yawaramin on Thursday October 08, 2020 @09:17PM (#24725728)
> It loves to tell you that a service has failed to start, but doesn't try to do anything like show you stderr from the process that might help debug.

It does, actually.

    sudo systemctl status the-service
...prints out the last few lines of the service log.

    sudo journactl -u the-service
...shows you all the logs. You can jump to the bottom if you want and start debugging right away.
Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by kanox on Thursday October 01, 2020 @05:08PM (#24656160)
Debugging is harder until you get used to systemd but otherwise it's a great improvement over sysvinit. The biggest issue I have is that it's apparently not well-supported inside containers and people recommend supervisord instead.

> It makes logging harder.

journalctl -u or tail your daemon's log file

> The documentation stinks.

It's actually pretty decent, and once you dig through it a lot of the unit file properties are genuinely useful and solve real problems that shell scripts can't deal with.

> It inserts bizarre delays.

Like what? Nowadays all distros boot pretty fast with it.

Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by dsr_ on Thursday October 01, 2020 @05:43PM (#24656450)
I didn't say sysvinit was better, although it frequently is. There are other inits and daemon supervisors out there.

journalctl is a terrible interface.

As for delays: you've never seen "waiting for [thing]... 5 min 30s" before? You're lucky.

Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by akvadrako on Friday October 02, 2020 @04:03AM (#24660243)
That's terrible but it's just a two line fix; one of the first things I do on any new system.
Re:Linux Kernel Developers Fed Up with Ridiculous Bugs in Sy... by yawaramin on Thursday October 08, 2020 @09:18PM (#24725733)
What's bad about journalctl?