Description of problem:
GNU screen gets killed if I detach GNU screen and log out.
Version-Release number of selected component (if applicable):
1. Login as user graphically
2. open gnome-terminal
3. $su - root
5. Detach screen
7. Logout of Gnome.
8. Login back again graphically
9. $su - root
10. $ screen -ls
There is a screen on:
12057.pts-1.hostname (Dead ???)
Remove dead screens with 'screen -wipe'.
1 Socket in /run/screen/S-root.
GNU screen should not be killed
Fresh installed Fedora 26.
Using XFS file system.
I tried the following two things after filing the bug.
As screen is working properly in Fedora 24 and 25, I installed Fedora 25 version of screen.
$dnf remove screen
$dnf install http://ftp.jaist.ac.jp/pub/Linux/Fedora/updates/25/x86_64/s/screen-4.6.1-1.fc25.x86_64.rpm
Download, compile and install GNU screen from source.
GNU screen is getting killed after these 2 steps also.
The above issue is a known issue in systemd.
"systemd-logind will now by default terminate user processes that are part of the user session scope unit (session-XX.scope) when the user logs out."
Hope there is some fix by either systemd or screen teams.
Issue is there in Fedora 27 also.
Issue is there in Fedora 28 also.
Issue is there in Fedora 29 also.
Login as root via terminal.
Run your commands and detach.
Screen is not dead when you login via Ctrl-Alt-F2 again.
Hope this helps with someone else with same issue.