Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2008 11:33:21 -0600
From:      Kirk Strauser <kirk@strauser.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: /tmp running out of inodes
Message-ID:  <200812181133.21330.kirk@strauser.com>
In-Reply-To: <7fec743f0812180854o2e66bee2m8369eba789290758@mail.gmail.com>
References:  <7fec743f0812180854o2e66bee2m8369eba789290758@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 18 December 2008 10:54:33 Tankko wrote:

> On a side question...what the the best policy for deleting files from
> /tmp?  Seems like a lot of apps are happy to leave files in /tmp.

What kind of files are you seeing in /tmp?  I have files in mine from July, but 
only about 7,000 files today - not nearly enough to run out of inodes (not that 
it should crash the FS anyway).

> Is clean up commonly done as a cron job?  What about files like mysql.sock=
> which are important.  I can't just blindly remove everything in /tmp each
> night.

I think you really need to figure out what's spamming /tmp.  You *can* do 
something like "find /tmp -type f -oldermt '3 days ago' -delete", but that's 
just addressing the symptoms.
-- 
Kirk Strauser



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