add a boot scritps to remove the deaths screen
Created attachment 99276 [details, diff] screen-4.0.2-r5.ebuild.diff
Created attachment 99277 [details] screen-cleanup.rc
Sounds like a big overkill for trivial screen -wipe command.
screen -wipe is insufficient as it only removes screens owned by the user running it, root in this case. To remove screens belonging to all owners, you need find /var/run/screen/ -type p | sed s:/var/run/screen/S-:: | xargs --no-run-if-empty screen -wipe Running it from local.start should be enough, a separate script for a single command line seems OTT.
Sorry for my english! Yes the idea is remove all screens deads on start up
You can't use xargs with screen this way, as screen requires stdin to be a tty. And you need -n 1 as screen will only wipe the first argument. Using rm -f /var/run/screen/S-*/* is bad, as it will remove active sessions and local.start is too late, as some init scripts use screen too launch a daemon in background. I agree with Jakub that it's too much hassle for a single command.