cvs commit: src/etc/rc.d cleartmp

Yar Tikhiy yar at FreeBSD.org
Wed Dec 20 04:29:52 PST 2006


yar         2006-12-20 12:29:40 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    etc/rc.d             cleartmp 
  Log:
  MFC rev. 1.18:
  
    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.
  
  Revision  Changes    Path
  1.12.2.2  +37 -36    src/etc/rc.d/cleartmp


More information about the cvs-src mailing list