Just spend 3 hours trying to figure out why systemd was killing my screen/tmux processes on logout. For anyone with the same issue:
- In /etc/systemd/logind.conf set KillUserProcesses=no and KillExcludeUsers=root YOUR_USERNAME
- Run sudo loginctl enable-linger YOUR_USERNAME
Was what fixed it for me in KDE Neon (Ubuntu 18.04).