From owner-freebsd-bugs Sat Nov 15 12:36:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA20784 for bugs-outgoing; Sat, 15 Nov 1997 12:36:18 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: from fly.HiWAAY.net (sprice@fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA20729; Sat, 15 Nov 1997 12:36:12 -0800 (PST) (envelope-from sprice@hiwaay.net) Received: from localhost (sprice@localhost) by fly.HiWAAY.net (8.8.7/8.8.6) with SMTP id OAA08747; Sat, 15 Nov 1997 14:35:35 -0600 (CST) Date: Sat, 15 Nov 1997 14:35:35 -0600 (CST) From: Steve Price To: evanc@synapse.net cc: FreeBSD-gnats-submit@FreeBSD.ORG, freebsd-bugs@hub.freebsd.org Subject: Re: misc/5054: /tmp not nuked on reboot In-Reply-To: <19971115152610.28186.qmail@piano.synapse.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 && {