Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200214 - app-misc/screen-4.0.3 does not wipe stale sockets on boot
Summary: app-misc/screen-4.0.3 does not wipe stale sockets on boot
Status: VERIFIED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-24 17:01 UTC by Leonid Evdokimov
Modified: 2007-11-24 20:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Evdokimov 2007-11-24 17:01:33 UTC
Screen does not wipe stale sockets in /var/run/screen/* on boot.
It's not very important, but it's nice to have the feature, if it's possible.

Reproducible: Always

Steps to Reproduce:
1. connect to server with: ssh -t login@host "screen -dR"
2. Enter `reboot`


Actual Results:  
After server reboot you'll have stale files in /var/run/screen.

Expected Results:  
And it'll be a bit better if there will be no stale sockets there.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-24 17:04:50 UTC
Set add it to /etc/conf.d/bootmisc.
Comment 2 Leonid Evdokimov 2007-11-24 18:31:38 UTC
Socket directory is hardcoded at compilation time and defaults to /var/run/screen or /usr/tmp/screens, so it's not cleaned with WIPE_TMP.
Let's try to override it with environment variable.

$ SCREENDIR=/tmp/screen screen
Cannot access /tmp/screen: No such file or directory

So WIPE_TPM will wipe /tmp/screen at reboot and it's not a solution.

$ SCREENDIR=/tmp screen
Directory /tmp must have mode 700.

So settings it to /tmp is not solution too.

Seems, bug is not resolved, so I reopen it (if I'm wrong, state that, please, I'm new to gentoo bugzilla)
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-11-24 18:33:27 UTC
# cat /etc/conf.d/bootmisc 
# /etc/conf.d/bootmisc

# Put a nologin file in /etc to prevent people from logging in before
# system startup is complete
DELAYLOGIN="no"

# List of /tmp directories we should clean up
WIPE_TMP_DIRS="/tmp"

# Should we wipe the tmp paths completely or just selectively remove known
# locks / files / etc... ?
WIPE_TMP="yes"

Comment 4 Leonid Evdokimov 2007-11-24 20:35:03 UTC
Latest x86 (not ~x86) version of sys-apps/baselayout-1.12.9-r2 does not include this feature.
What version of baselayout do you have?
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-11-24 20:38:21 UTC
2.0.0_rc6; you can either upgrade or do this in /etc/conf.d/local.start; screen itself can't wipe anything at boot obviously.
Comment 6 Leonid Evdokimov 2007-11-24 20:42:59 UTC
Yes, it can't, I know that.
I posted this feature-request only because I've seen separate init.d script to wipe stale sockets in other distros.

Thank you.