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.
This message is a reminder that Fedora 29 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '29'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 29 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
systemd-run should enables to fix that.
See its man page:
systemd-run --scope --user screen
Thus it should survives logging off GNOME…
got the message.
"Failed to create bus connection: No such file or directory"
$ su -
$ systemd-run --scope --user screen