Sessions of screen does not keep running in background
Bug #1900008 reported by
Gustavo A. Díaz
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| screen (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
| systemd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bug Description
In a new fresh installed 20.04, when I use screen command and close the terminal (not closing screen sesion), then I can't recover it with screen -x, since does not exist. I can only recover screen sesion if the original terminal running screen is not being closed.
For some reason, this is closing screen session of that user:
Oct 15 13:32:45 pc-caja2 systemd[1]: session-66.scope: Succeeded.
Oct 15 13:32:45 pc-caja2 systemd[1]: Stopped Session 66 of user usuario.
This does not happen in an upgraded system from 18.04 to 20.04.
| affects: | launchpad → screen (Ubuntu) |
| description: | updated |
To post a comment you must log in.

If I "exit" from a screen I'd always expect it is gone.
You'd usually only detach to leave it around like "CTRL+A D" and then you can later reattach.
So you are saying you formerly could
ssh to target and then:
$ screen
# enters the screen session
$ <do stuff>
$ exit
# left the screen
$ screen -x
# this would have re-attached you to the former session?
I'd not have expected this would have ever worked that way.
So I'm assuming you have a slightly different setup, can you explain please how exactly you are entering/leaving the screen session?