Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Nov 1997 14:35:35 -0600 (CST)
From:      Steve Price <sprice@hiwaay.net>
To:        evanc@synapse.net
Cc:        FreeBSD-gnats-submit@FreeBSD.ORG, freebsd-bugs@hub.freebsd.org
Subject:   Re: misc/5054: /tmp not nuked on reboot
Message-ID:  <Pine.OSF.3.96.971115142708.6026A-100000@fly.HiWAAY.net>
In-Reply-To: <19971115152610.28186.qmail@piano.synapse.net>

next in thread | previous in thread | raw e-mail | index | archive | help


On 15 Nov 1997 evanc@synapse.net wrote:

# 
# >Fix:
# 	
# 	Here's what BSDI uses.  Try to change a few words :-)
# 
# 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 \
#         ! -name quota.user ! -name quota.group -exec rm -rf -- {} \;)
# 

Try the attached patch on a -current system.  This will get what
you want.  As far as a switch in rc.conf, you might drop pst@FreeBSD.org
a line since the new periodic crontab changes are his.

Steve

Index: 110.clean-tmps
===================================================================
RCS file: /tmp/src/cvs/src/etc/periodic/daily/110-clean-tmps,v
retrieving revision 1.3
diff -u -r 1.3 110.clean-tmps
--- 110.clean-tmps	1997/09/11 15:21:30	1.3
+++ 110.clean-tmps	1997/11/15 20:34:26
@@ -12,7 +12,7 @@
 # run.
 #

-exit 0		# do not run by default
+#exit 0		# do not run by default

 if [ -d /tmp ]; then
     cd /tmp && {





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.96.971115142708.6026A-100000>