News for hackers. Stuff that matters.
Re:Systemd, ten years later: a historical and technical retr... by oconnor663 on Sunday May 03, 2020 @11:58PM (#23064416)
Have you tried `sudo loginctl enable-linger [username]`? This used to be well-documented, but I don't see much about it now. It's possible things have changed since the last time I had to deal with this?
Re:Systemd, ten years later: a historical and technical retr... by majewsky on Monday May 04, 2020 @06:53AM (#23066523)
What do you mean? I still see it in `man loginctl`.

> enable-linger [USER...], disable-linger [USER...]

> Enable/disable user lingering for one or more users. If enabled for a specific user, a user manager is spawned for the user at boot and kept around after logouts. This allows users who are not logged in to run long-running services. Takes one or more user names or numeric UIDs as argument. If no argument is specified, enables/disables lingering for the user of the session of the caller. See also KillUserProcesses= setting in logind.conf(5).

Re:Systemd, ten years later: a historical and technical retr... by oconnor663 on Monday May 04, 2020 @12:25PM (#23069973)
Mainly I meant that I no longer see it recommended on the Arch wiki, which I think is where I first learned it. But it looks like that might be because Arch now compiles systemd with lingering on by default (or something similar to that, I'm probably using the wrong term).
Re:Systemd, ten years later: a historical and technical retr... by majewsky on Friday May 08, 2020 @07:52AM (#23113708)
Linger does more than just keeping the session open after logout. It also means that the session gets started automatically on boot, which is necessary if you want to have systemd units for that user autostart. Case in point, the PulseAudio setup on my homeserver: https://github.com/majewsky/system-configuration/blob/2f93ff...