From tejblum@arc.hq.cti.ru  Fri May 16 08:37:23 1997
Received: from arc.hq.cti.ru (arc.hq.cti.ru [194.67.85.50])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA04234
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 16 May 1997 08:37:19 -0700 (PDT)
Received: (from tejblum@localhost)
	by arc.hq.cti.ru (8.8.5/8.8.5) id TAA20943;
	Fri, 16 May 1997 19:36:33 +0400 (MSD)
Message-Id: <199705161536.TAA20943@arc.hq.cti.ru>
Date: Fri, 16 May 1997 19:36:33 +0400 (MSD)
From: Dmitrij Tejblum <tejblum@arc.hq.cti.ru>
Reply-To: tejblum@arc.hq.cti.ru
To: FreeBSD-gnats-submit@freebsd.org
Subject: New /etc/rc not clearing /tmp
X-Send-Pr-Version: 3.2

>Number:         3605
>Category:       conf
>Synopsis:       New /etc/rc not clearing /tmp
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 16 08:40:01 PDT 1997
>Closed-Date:    Fri May 16 10:50:23 PDT 1997
>Last-Modified:  Mon May 19 02:40:01 PDT 1997
>Originator:     Dmitrij Tejblum
>Release:        FreeBSD 2.2-STABLE i386
>Organization:
CompTek
>Environment:


>Description:

The following lines was excluded from /etc/rc. It probably caused
my troubles with starting X. 

echo clearing /tmp

# prune quickly with one rm, then use find to clean up /tmp/[lq]*
# (not needed with mfs /tmp, but doesn't hurt there...)
(cd /tmp && rm -rf [a-km-pr-zA-Z]* &&
    find -d . ! -name . ! -name lost+found ! -name quotas -exec rm -rf -- {} \;)

# The above is even more stupid since it prevents you from restarting
# X11 after a system crash.  If you disable the above, make sure to
# uncomment the line below.
#
# clean up leftover X lock files and local connection sockets
#rm -f /tmp/.X*-lock /tmp/.X11-unix/*


>How-To-Repeat:


>Fix:
	
Restore the code.

>Release-Note:
>Audit-Trail:

From: Bill Fenner <fenner@parc.xerox.com>
To: tejblum@arc.hq.cti.ru
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: conf/3605: New /etc/rc not clearing /tmp 
Date: Fri, 16 May 1997 10:39:09 PDT

 ># The above is even more stupid since it prevents you from restarting
 
 I don't think it's a good idea for /etc/rc to call itself stupid.
 (especially in a way that's so hard to parse; more stupid than what?).
 
   Bill
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Fri May 16 10:50:23 PDT 1997 
State-Changed-Why:  
This is not a bug, this is a feature. 

Yes, I'm also aware of issues like xdm leaving cacas around in /tmp 
and refusing to start again if you terminate it abruptly, but 
that's a bug in xdm which should be fixed there (it should check 
to see if it's actually still running before heeding the lock file). 

Clearing /tmp is evil and causes more problems than it solves - it's 
been disabled on many of our machines since the very beginning and 
should not be resurrected. 

From: j@uriah.heep.sax.de (J Wunsch)
To: tejblum@arc.hq.cti.ru
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/3605: New /etc/rc not clearing /tmp
Date: Sun, 18 May 1997 23:03:18 +0200

 As Dmitrij Tejblum wrote:
 
 > The following lines was excluded from /etc/rc. It probably caused
 > my troubles with starting X.
 
 Clearing /tmp in /etc/rc is a stupid idea from the beginning.  You
 need to clean it regularly anyway, and unless we ship the system also
 with a crontab entry that reboots it every night :), the cleanup at
 startup time is ideally a no-op (since the machine is up for 365+
 days).  Also, in case your /tmp is not on MFS, you might sometimes be
 happy to still find this or that file in /tmp after a crash.  (And in
 the MFS case, you still don't need the cleanup in /etc/rc.)
 
 > #rm -f /tmp/.X*-lock /tmp/.X11-unix/*
 
 Why didn't you just enable this one?
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)

From: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
To: joerg_wunsch@uriah.heep.sax.de (J Wunsch)
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: conf/3605: New /etc/rc not clearing /tmp 
Date: Mon, 19 May 1997 12:41:02 +0400

 >  As Dmitrij Tejblum wrote:
 >  
 >  > The following lines was excluded from /etc/rc. It probably caused
 >  > my troubles with starting X.
 >  
 >  Clearing /tmp in /etc/rc is a stupid idea from the beginning.  
 > ...
 >  > #rm -f /tmp/.X*-lock /tmp/.X11-unix/*
 >  
 >  Why didn't you just enable this one?
 
 There is no such line in /etc/rc, so I cannot "enable" it. I placed it to 
 /etc/rc.local, since Jordan plans to install /etc/rc in 'make world'.
 
 There was a comment in the old /etc/rc
 # [Disabling?] The above [clearing /tmp] is even more stupid since it prevents you from restarting
 # X11 after a system crash.  If you disable the above [clearing /tmp], make sure to
 # uncomment the line below. [clearing only X locks]
 
 Jordan erased "above", "below", and the comment itself.
 
 Dima
 
 
>Unformatted:
