/etc/init.d/bootmisc
76 #
77 # Clean up /tmp directory
78 #
79 ebegin "Cleaning /tmp directory"
80 rm -f /tmp/.X*-lock /tmp/esrv* /tmp/kio*
/tmp/jpsock.* /tmp/.fam* &>/dev/null
81 rm -rf /tmp/.esd* /tmp/orbit-* /tmp/ssh-*
/tmp/ksocket-* /tmp/.*-unix &>/dev/null
82 # Make sure our X11 stuff have the correct
permissions
83 mkdir -p /tmp/.{ICE,X11}-unix &>/dev/null
84 chown root.root /tmp/.{ICE,X11}-unix &>/dev/null
85 chmod 1777 /tmp/.{ICE,X11}-unix &>/dev/null
86 eend 0
On Tue, 2003-11-04 at 23:26, Patrick Marquetecken wrote:
> I agree with this,
> but if at boot time gentoo says clearing, i suppose it must doing
> something in those two directory's, otherwise this message is completely
> useless.
>
> Patrick
>
> Op ma 03-11-2003, om 23:59 schreef Bryan Whitehead:
> > Patrick Marquetecken wrote:
> > > Hi,
> > >
> > > At boot time I see a message that /tmp en /vat/tmp are being cleared,
> > > but I still find files from months ago in there. Is this normal?, I
> > > would say no, but how do i fix this?
> > >
> > > Patrick
> >
> > This is fine according to LSB/FHS.
> >
> > /var/tmp should *not* be cleared after reboot:
> > http://www.pathname.com/fhs/2.2/fhs-5.15.html
> > "The /var/tmp directory is made available for programs that require
> > temporary files or directories that are preserved between system
> > reboots. Therefore, data stored in /var/tmp is more persistent than data
> > in /tmp. Files and directories located in /var/tmp must not be deleted
> > when the system is booted. Although data stored in /var/tmp is typically
> > deleted in a site-specific manner, it is recommended that deletions
> > occur at a less frequent interval than /tmp. "
> >
> > /tmp *can* be cleared after reboot, but is not required:
> > http://www.pathname.com/fhs/2.2/fhs-3.15.html
> >
> > "Programs must not assume that any files or directories in /tmp are
> > preserved between invocations of the program."
> > "Although data stored in /tmp may be deleted in a site-specific manner,
> > it is recommended that files and directories located in /tmp be deleted
> > whenever the system is booted. FHS added this recommendation on the
> > basis of historical precedent and common practice, but did not make it a
> > requirement because system administration is not within the scope of
> > this standard."
--
[EMAIL PROTECTED] mailing list