Date: Mon, 16 Oct 2006 13:01:45 +0000 (UTC) From: Yar Tikhiy <yar@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/etc/rc.d cleartmp Message-ID: <200610161301.k9GD1j0C074012@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
yar 2006-10-16 13:01:45 UTC
FreeBSD src repository
Modified files:
etc/rc.d cleartmp
Log:
Improve cleartmp in a number of aspects:
+ Use rc.subr(8) features properly.
+ Do the whole job of obliterating /tmp contents in find(1).
+ Leave lost+found and quota.{user,group} in /tmp only if root-owned.
+ Make the overall structure clearer by first removing the X dirs
(perhaps along with the rest of /tmp) and then re-creating them.
+ Use "find -exec rm -rf {} +" for efficiency: each rm instance gets
a chance to kill as much files in /tmp as ARG_MAX permits.
PR: bin/104044
Submitted by: Andrey Simonenko <see PR for email>
Hacked by: yar
MFC after: 1 month
Revision Changes Path
1.18 +37 -36 src/etc/rc.d/cleartmp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610161301.k9GD1j0C074012>
