News for hackers. Stuff that matters.
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?