News for hackers. Stuff that matters.
Re:Systemd Home Directories by johnny22 on Sunday February 09, 2020 @10:54PM (#22286314)
i don't see distros like debian ever using that as the default way, and there's no indication that the old way will disappear either.
Re:Systemd Home Directories by catalogia on Sunday February 09, 2020 @11:13PM (#22286387)
I hope you're right, but Debian has adopted other questionable SystemD defaults in the past, such as killing nohup'd processes when the user logs out (which is absolutely inane.)
Re:Systemd Home Directories by anonsivalley652 on Monday February 10, 2020 @12:04AM (#22286542)
Hence the Devuan fork but now the Debian is "exploring alternatives" to supporting multiple init systems. https://lists.debian.org/debian-devel-announce/2019/12/msg00...

My religious view, having started since the Slackware on CD days with original rc and experienced upstart, launchd, openrc, daemontools, runit, daemontools-encore and s6 is: SystemD does too much, has too many dependencies, does it awkwardly and is unfriendly to configuration management, robustness, troubleshooting, "least surprise" principle and simplicity.

If I were Debian devs, there are two choices to init-agnosticism: a) pick one init provider at a time or b) manage multiple init systems simultaneously. For the latter, a very simple meta-init process could either exec() the only init system if one is used or supervise 2+ init systems. Then, there would need to be a tool to manage the lifecycle of a service no matter which init system it belonged to.

It might be easier to pick a), but a common use-case is to use daemontools for custom or other services that need to be kept running. Granted, there are probably packages that already run daemontools, runit or daemontools-encore as a child under the existing system init.

It's times like these that I wish there were a capabilities-oriented standard file layout such that every service knew how to start, soft-stop, hard-stop, enable, disable, reload-config and validate-config itself rather than every N init system having to find magic command-line args to not spawn in the background, change the user/group and change the log level, ports, bound address(es) and log destination. And then Cfengine, augeas, puppet, chef, salt, etc. reimplemented all of that logic per service. Services should also know how to backup/restore/wipe their own data (if not a 12Factor service themselves), whether they're up/down and how to gather their own metrics... and then cacti, nagios, nrpe and so on implemented all of that sort of logic per service too. sigh Cross-cutting concerns should be managed at the place that knows best how to manage the data and process lifecycle best: per service. Then, once that's done in a standard way, /etc configuration and configuration management can customize away. Having each service become enumerable and discoverable like a Bluetooth profile is another matter.

Re:Systemd Home Directories by colechristensen on Monday February 10, 2020 @02:31AM (#22287112)
Systemd does something hard, easily arguably necessary, but it does not solve the problems well enough. I have similar feelings about containerization on Linux. I feel it comes down to lack of taste, or perhaps just the factioned nature of Linux distributions which are driven mostly by maintaining packaging instead of an operating system. Loo

Experimenting with FreeBSD has been a breath of fresh air. Things I've come to expect to take an extended amount of time figuring out just work out of the box.

Re:Systemd Home Directories by tifadg1 on Monday February 10, 2020 @07:33AM (#22288528)
Reading your last paragraph made me wonder if maybe systemd is suffering from the bike-shed affect - while barrier of entry to say kernel development is so that it detracts most bystanding naysayers, as far as systemd goes, it feels like a lot of people have a lot of different opinions because what systemd is doing is much easier comprehended than the aforementioned kernel.
Re:Systemd Home Directories by api on Sunday February 09, 2020 @11:19PM (#22286410)
What? I didn't even know about that. This stuff is such absolute trash.
Re:Systemd Home Directories by catalogia on Sunday February 09, 2020 @11:27PM (#22286441)
A lot of people (including me) learned about it the hard way when their tmux sessions began mysteriously disappearing. The solution is KillUserProcesses=no in /etc/systemd/logind.conf

Some systemd advocates say the critics are just upset at change. I don't dislike change in general, but changing defaults out from under me? Defaults like this? That irks me. I lost a several tmux sessions before I realized what was happening. I thought I was doing something wrong because SystemD violated my expectations so severely.

Re:Systemd Home Directories by loopz on Monday February 10, 2020 @12:26AM (#22286610)
Turns out some people like to force change upon others. They will always win out. These same people are oblivious to cause and effect.
Re:Systemd Home Directories by ColanR on Tuesday February 11, 2020 @03:24PM (#22302413)
I remember reading on HN at the time, how the systemD folks opened a bug report (or some such similar) on the tmux github because systemD was disappearing those tmux sessions, and their solution was for tmux to change how they managed persistency. Tmux stood their ground, and I think that's why KillUserProcesses=yes isn't still default. (iirc)
Re:Systemd Home Directories by api on Monday February 10, 2020 @08:15AM (#22288803)
A system-wide setting when the objective is user process control behavior? Really? Just wow.
Re:Systemd Home Directories by kuschku on Monday February 10, 2020 @10:47AM (#22290073)
multi-user system, user logs out, do you want to have buggy software still hanging around?

The whole point is for the administrators to be able to avoid users running long-running processes on shared systems (e.g. university systems).

Re:Systemd Home Directories by JohnFen on Monday February 10, 2020 @12:14PM (#22290995)
> multi-user system, user logs out, do you want to have buggy software still hanging around?

Of course not. But I do want to have the nohup software they have running to keep running when they log out.

> The whole point is for the administrators to be able to avoid users running long-running processes on shared systems (e.g. university systems).

Right, which is why it should be possible to do this. The issue is that the default behavior has changed from honoring nohup to not honoring nohup. Defaulting to honoring nohup is what's expected, and is reasonable.

Re:Systemd Home Directories by yori on Monday February 10, 2020 @07:06AM (#22288400)
Why did the sessions disappear? Can you explain more about it?
Re:Systemd Home Directories by fsh on Monday February 10, 2020 @08:19AM (#22288825)
Systemd can be configured to kill all processes belonging to a user when he or she closes the last login shell. Some people had this enabled on their servers and were surprised that their tmux/screen sessions kept disappearing.
Re:Systemd Home Directories by seabird on Monday February 10, 2020 @09:05AM (#22289164)
This is a bit disingenuous; people didn't just "have it enabled", it was made a default despite a lot of concern that it was such a radical departure from the normal behavior.
Re:Systemd Home Directories by fgonzag on Monday February 10, 2020 @05:47PM (#22294252)
Some people? Do you mean everyone who's distro did not change the default value?
Re:Systemd Home Directories by oarsinsync on Monday February 10, 2020 @09:37AM (#22289425)
It may have passed you by as it did me. It looks like either systemd or debian changed course and changed the default for KillUserProcesses to no.