Package: screen
Version: 4.0.3-0.2
Followup-For: Bug #390506
If $SCREENDIR has just been created, I don't see any reason to search
it for stale screen sessions :
--- /etc/init.d/screen-cleanup 2004-03-16 03:29:04.000000000 +0100
+++ /tmp/screen-cleanup 2007-01-20 15:41:58.000000000 +0100
@@ -9,7 +9,12 @@
case "$1" in
start)
- if find $SCREENDIR -type p | grep '^' >/dev/null; then
+ if [ ! -d $SCREENDIR ]; then
+ echo -n "Creating $SCREENDIR..."
+ mkdir -m 0775 $SCREENDIR
+ chown root:utmp $SCREENDIR
+ echo "done."
+ elif find $SCREENDIR -type p | grep '^' >/dev/null; then
echo -n 'Cleaning up stale screen sessions... '
find $SCREENDIR -type p -print0 | xargs -0 rm -f
echo "done."
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]