News for hackers. Stuff that matters.
Re:Debian: Transition plan to systemd by default by tomswartz07 on Monday February 23, 2015 @08:28AM (#9094124)
I seem to remember that SystemD caused quite a stir for Debian a while back, but I don't remember exatly why.

Can anyone give a (brief) explanation as to the background of the controversy?

Re:Debian: Transition plan to systemd by default by tinco on Monday February 23, 2015 @08:31AM (#9094142)
Some people claim SystemD is not in line with unix philosophy. Some think it is bug ridden. Some just feel its adoption was strong armed by political heavy weights. Some feel other solutions might be better. And others believe there was never a problem with the current solution to begin with.

(I don't agree btw, just giving some info on opinions that others have)

Re:Debian: Transition plan to systemd by default by falcolas on Monday February 23, 2015 @09:04AM (#9094297)
> Some people claim SystemD is not in line with unix philosophy

One example of this interpretation - we can no longer reliably use `netstat -nlp` to determine what process is responding to requests a particular socket. In certain configurations, `netstat -nlp` will show systemd owning the socket, not the process who receives and responds to the process.

e.g. Systemd will own port 80, and feed it back to Apache who listens over 8080.

To determine who will truly respond, you need to know the proper systemctl incantation, or find the configuration file (there are 8 locations across 3 folder hierarchies where these can live[0]).

[0] http://man7.org/linux/man-pages/man5/systemd-user.conf.5.htm...

Re:Debian: Transition plan to systemd by default by JoshTriplett on Monday February 23, 2015 @11:06AM (#9095003)
> e.g. Systemd will own port 80, and feed it back to Apache who listens over 8080.

No, Apache actually listens to port 80, just on a socket created by systemd. systemd opens the TCP listening socket, spawns Apache (potentially on demand when connected to), and passes along the file descriptor for the socket. Apache then treats that file descriptor as though it had opened it itself. Similar to inetd, except that it isn't limited to stdio.

That said, since netstat -p shows who opened the socket rather than who is using the socket, socket activation does make it less useful. Given that netstat -p already reads all the necessary information from /proc, it'd be nice to teach netstat to show multiple programs listening on a socket, not just the opener.

Re:Debian: Transition plan to systemd by default by jethro_tell on Monday February 23, 2015 @09:31AM (#9094434)
>you need to know the proper systemctl incantation

Isn't this true for all commandline programs? It's a different way to do things in many ways, but this argument doesn't really talk about the merits or pitfalls, only the fact that it's different.

Re:Debian: Transition plan to systemd by default by falcolas on Monday February 23, 2015 @10:31AM (#9094784)
Well, it's both different and inconsistent. I still have to use netstat for processes who manage their own sockets, but I can't rely on the output for all processes anymore.

Also, netstat has existed and worked for more years than I've been a sysadmin. I'm not opposed to learning new things, but this magnitude of change and inconsistency is hard to keep up with.

Re:Debian: Transition plan to systemd by default by EmanueleAina on Monday February 23, 2015 @03:56PM (#9096965)
But `netstat` was already broken for xinetd-started services. I get that it probably didn't affect you, but it means that `netstat` already had its shortcomings.

Now that socket-activated services may see more widespread usage, hopefully someone interested will add to `netstat` the ability to tell who is listening on the socket and not only who opened it (all the data is available in /proc, which netstat is using already).

And in the meantime there's always `systemctl list-sockets`.

Re:Debian: Transition plan to systemd by default by lucian1900 on Monday February 23, 2015 @10:08AM (#9094639)
You're describing binding sockets for other processes, which is a great feature and has been standard practice since forever.

You also get socket activation, for free.

Re:Debian: Transition plan to systemd by default by falcolas on Monday February 23, 2015 @10:43AM (#9094857)
> standard practice since forever

Within individual process trees, yes. Across all process trees via the init system, not so much.

I agree that it is a very useful thing to do and has been technically possible forever (since spawned processes need to have their inherited file handles over 2 intentionally closed), but it adds a bit of uncertainty and unnecessary coupling when it starts crossing the (admittedly arbitrary) process role boundary.

The benefit of faster startup time is negligible for the typical non-desktop.

> You also get socket activation, for free.

Socket activation has been available for many (10+) years via xinitd, but it is infrequently used for a variety of reasons. For one, it's slow. The time required to spin up a new process to handle the requested information is non-0, particularly in cases where socket activation is most likely to be used (shell scripts, Python/Ruby/Node applications). This is OK for services used only occasionally, but for any frequently used service it is usually unacceptable.

Plus, the overhead of keeping an occasionally-used service running in memory and listening to its own socket is typically pretty low, yet it provides the benefit of knowing exactly what is responding to a given socket.

Re:Debian: Transition plan to systemd by default by feld on Monday February 23, 2015 @09:31AM (#9094435)
So systemd is doing a reverse proxy for Apache in that configuration? Or is it launching Apache on demand like some sort of advanced inetd?

Either way, netstat -nlp isn't lying about who owns the port 80 socket. It's a terrible idea, but the data returned is not incorrect.

Re:Debian: Transition plan to systemd by default by falcolas on Monday February 23, 2015 @10:00AM (#9094588)
Well, it depends. In some cases, it's opening the file descriptor for a port then giving it to the daemon after the daemon has finished starting up. The service ends up maintaining the socket, but Systemd opened it.

In other cases, Systemd acts as an advanced xinitd and start services on demand, which means that Systemd listens and starts a service, but the service does the accept and responds.

So... it's hard to say without digging into the systemd configs.

Re:Debian: Transition plan to systemd by default by EmanueleAina on Monday February 23, 2015 @03:51PM (#9096927)
> So systemd is doing a reverse proxy for Apache in that configuration?

Nope, systemd only opens the socket and passes the fd to Apache.

> Or is it launching Apache on demand like some sort of advanced inetd?

Yes. Since it's already init's job to start services, it does not make any sense to have a different system to start socket-activated services.

Re:Debian: Transition plan to systemd by default by qznc on Monday February 23, 2015 @10:15AM (#9094691)
How is a netstat incantation better than a systemctl incantation?
Re:Debian: Transition plan to systemd by default by Karunamon on Monday February 23, 2015 @10:23AM (#9094732)
Because change for change's sake is often not a good thing? Thats only a couple decades worth of muscle memory thrown down the toilet...
Re:Debian: Transition plan to systemd by default by qznc on Monday February 23, 2015 @10:53AM (#9094926)
You should unlearn netstat anyways. Its own man pages declares it obsolete. And it was obsolete before systemd appeared.

https://dougvitale.wordpress.com/2011/12/21/deprecated-linux...

Re:Debian: Transition plan to systemd by default by digi_owl on Monday February 23, 2015 @01:22PM (#9095891)
Dunno about anyone else, but i prefer ifconfig over ip.

At least for smaller tasks like toggling a interface up or down.

Re:Debian: Transition plan to systemd by default by BuildTheRobots on Tuesday February 24, 2015 @05:31AM (#9099751)
Thanks, wasn't aware of that. Though from quick testing, the output of `ss -nlp` seems entirely unreadable compared to `netstat -nlp`.
Re:Debian: Transition plan to systemd by default by Karunamon on Monday February 23, 2015 @03:54PM (#9096950)
And it uses a completely different output format for all of its commands. Obsolete, maybe, but the net-tools do their jobs admirably.
Re:Debian: Transition plan to systemd by default by wtbob on Monday February 23, 2015 @10:03AM (#9094606)
> Can anyone give a (brief) explanation as to the background of the controversy?

Remember the stability, flexibility and reliability that PulseAudio brought to Linux audio? Imagine that in your boot process.

I wonder if Lennart Poettering is secretly funded by a consortium of Microsoft, Apple and IBM.

Re:Debian: Transition plan to systemd by default by oblio on Monday February 23, 2015 @10:22AM (#9094725)
Is PulseAudio causing anyone problems these days?
Re:Debian: Transition plan to systemd by default by ddalex on Monday February 23, 2015 @10:48AM (#9094887)
Yep, to me, all the time.

Number one pet peeve - I can't disable mic auto-volume.

Number two - if you don't run Gnome, you're screwed having to resort to very complex, not-self-documenting command line tools to do the simplest of stuff. How do I change the volume of the box from the command line ?

Number 3 - everytime I plug my laptop's DisplayPort into a TV (used for presentations here), PA routes the audio automatically over the TV. But when I plug it out, the sounds happly continues into the depths of /dev/null, and I have yet to find a way to re-route it to my headphones without killing the PA daemon.

And I can continue. PA works ok only if you if you run Gnome, and you never plug in/out audio devices. It's a horrible software piece, but I'm stuck with it because it's not my priority to write audio daemon replacements.

Re:Debian: Transition plan to systemd by default by mercurial on Monday February 23, 2015 @11:33AM (#9095144)
> Number two - if you don't run Gnome, you're screwed having to resort to very complex, not-self-documenting command line tools to do the simplest of stuff. How do I change the volume of the box from the command line ?

You can use pavucontrol without Gnome. Don't know what command-line tools, if any, are available for Pulse Audio.

Re:Debian: Transition plan to systemd by default by anonbanker on Tuesday February 24, 2015 @01:19AM (#9099071)
make it a priority to install Cadence/JACK on your debian machine, and make PulseAudio it's slave. you'll thank me later.
Re:Debian: Transition plan to systemd by default by upofadown on Monday February 23, 2015 @02:20PM (#9096342)
If you have a system with more than stereo (say 5.1) then by default pulseaudio upmixes all sources with fewer channels by simply duplicating all the channels on the same side and mixing everything to the centre channel. This makes it impossible to listen to music recorded with any meaningful stereo separation. The workaround is to mute all the extra channels.

There is an option to disable upmixing entirely but that triggers at least a couple of bugs. One involves the VU meter indications (shrug). The other causes pulseaudio to emit silence instead of mono streams (fatal).

This bug has been open for over a decade now. At least one patch has been submitted and shrugged off. If you look at the tracker you will see lots of bugs like these where knowledge of the entire system is required to fix them. What seems to have happened is that once the original developers left, some bugs became eternal.

Re:Debian: Transition plan to systemd by default by wtbob on Monday February 23, 2015 @11:56AM (#9095309)
I still can't have multiple login sessions properly sharing audio, and for some reason sometimes different sessions start using the wrong audio output.
Re:Debian: Transition plan to systemd by default by matteotom on Monday February 23, 2015 @08:41AM (#9094193)
A lot of people don't like systemd for various reasons, ranging from personal to political to technical. The Debian Technical Committee voted that systemd sysVinit needs to be replaced, and that systemd is the best option. Since then, there have been a number of attempts from within Debian to overturn this decision, or at least force Debian to officially support multiple init systems, with the most recent ending with a result of basically "no further discussion is needed."
Re:Debian: Transition plan to systemd by default by syoc on Monday February 23, 2015 @08:55AM (#9094251)
Developer attitude (keep clicking next in thread) http://lkml.iu.edu//hypermail/linux/kernel/1404.0/01327.html

I have not read this carefully enough to fully endorse everything it says, but the main point should be (lack of) modularity.

http://www.landley.net/notes-2014.html#23-04-2014

Re:Debian: Transition plan to systemd by default by digi_owl on Monday February 23, 2015 @10:21AM (#9094716)
There was also a "lovely" LMGTFY over on Google+ when systemd grew a DHCP client...