Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 1996 15:08:15 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Subject:   Cleaning of /tmp in /etc/rc
Message-ID:  <199606221308.PAA27308@uriah.heep.sax.de>

next in thread | raw e-mail | index | archive | help
Does anybody know what the following is for?

# 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 -- {} \;)

Besides the problems with a boot-time cleaning of /tmp without purging
it from /etc/daily (see my recent commit), the above fails to remove
the files /tmp/.X*lock, causing the Xserver to fall over if it was
active by the time the machine crashed.

-- 
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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606221308.PAA27308>