From owner-freebsd-bugs Sat Nov 15 12:40:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA22484 for bugs-outgoing; Sat, 15 Nov 1997 12:40:09 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA22435; Sat, 15 Nov 1997 12:40:02 -0800 (PST) (envelope-from gnats) Date: Sat, 15 Nov 1997 12:40:02 -0800 (PST) Message-Id: <199711152040.MAA22435@hub.freebsd.org> To: freebsd-bugs Cc: From: Steve Price Subject: Re: misc/5054: /tmp not nuked on reboot Reply-To: Steve Price Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR misc/5054; it has been noted by GNATS. 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 Date: Sat, 15 Nov 1997 14:35:35 -0600 (CST) 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 && {