LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] /tmp not cleared on reboot

[ILUG] /tmp not cleared on reboot

Walter Faleiro curtorkar at gmail.com
Wed Nov 29 23:11:04 GMT 2006


The rc.sysinit has this
# Do we need (w|u)tmpx files? We don't set them up, but the sysadmin
might...
[ -f /var/run/utmpx -o -f /var/log/wtmpx ] && _NEED_XFILES=1
# Clean up utmp/wtmp
> /var/run/utmp
touch /var/log/wtmp
chgrp utmp /var/run/utmp /var/log/wtmp
chmod 0664 /var/run/utmp /var/log/wtmp
  > /var/run/utmpx
  touch /var/log/wtmpx
  chgrp utmp /var/run/utmpx /var/log/wtmpx
  chmod 0664 /var/run/utmpx /var/log/wtmpx
rm -f /tmp/.X*-lock
rm -rf /tmp/.X*-unix
rm -rf /tmp/.ICE-unix
rm -f /tmp/.s.PGSQL.*

So I understand an extra line shoud go rm -rf /tmp/*

Not sure why they left it out.

--W


https://rhn.redhat.com/network/software/channels/downloads.pxt?cid=49

On 11/30/06, Walter Faleiro <curtorkar at gmail.com> wrote:
>
> Thanks Rick,
> My distro is
> cat /etc/issue
> Red Hat Enterprise Linux WS release 3 (Taroon Update 1)
> Kernel \r on an \m
>
>
>
> I got that for Debian on googling, but am trying to fix it for Redhat
> systems. I understand tmpwatch is supposed to clear things up.
> I can have a script like find /tmp -type f -mtime +7 exec { rm -rf } \;
> and have files that are older than 7 days removed.
>
> My reason for posting this was that by default Redhat clears /tmp on
> reboot.
> So just want to debug the issue from then
>
> --W
>
> On 11/30/06, Rick Moen < rick at linuxmafia.com> wrote:
> >
> > Quoting Walter Faleiro (curtorkar at gmail.com):
> >
> > > Has anyone noticed the behaviour that /tmp is not cleared on reboots?
> >
> > 1.  Your [unnamed] distro sucks.  ;->
> > 2.  On Debian and similar, edit this section in /etc/default/rcS, to
> > suit:
> >
> > # Time files in /tmp are kept in days.
> > TMPTIME=7
> >
> > --
> > Irish Linux Users' Group mailing list
> > About this list : http://mail.linux.ie/mailman/listinfo/ilug
> > Who we are : http://www.linux.ie/
> > Where we are : http://www.linux.ie/map/
> >
>
>



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell