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.
Steps to Reproduce:
1. connect to server with: ssh -t login@host "screen -dR"
2. Enter `reboot`
After server reboot you'll have stale files in /var/run/screen.
And it'll be a bit better if there will be no stale sockets there.
Set add it to /etc/conf.d/bootmisc.
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)
# cat /etc/conf.d/bootmisc
# Put a nologin file in /etc to prevent people from logging in before
# system startup is complete
# List of /tmp directories we should clean up
# Should we wipe the tmp paths completely or just selectively remove known
# locks / files / etc... ?
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?
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.
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.