Date: Thu, 18 Dec 2008 18:30:15 +0000 From: "Daniel Bye" <danielby@slightlystrange.org> To: freebsd-questions@freebsd.org Subject: Re: /tmp running out of inodes Message-ID: <20081218183015.GH5150@torus.slightlystrange.org> In-Reply-To: <7fec743f0812180854o2e66bee2m8369eba789290758@mail.gmail.com> References: <7fec743f0812180854o2e66bee2m8369eba789290758@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--4vpci17Ql0Nrbul2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 18, 2008 at 08:54:33AM -0800, 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. Is > clean up commonly done as a cron job? What about files like > mysql.sock=3D which are important. I can't just blindly remove > everything in /tmp each night. As Kirk has already said, you need to figure why this is happening in=20 the first place, but there is a periodic job which can help keep /tmp tidy for you. It is in /etc/periodic/daily/110.clean-tmps and can be enabled with this in /etc/periodic.conf: daily_clean_tmps_enable=3D"YES" You can tailor its behaviour depending on your needs - look for the relevant knobs in /etc/defaults/periodic.conf Dan --=20 Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --4vpci17Ql0Nrbul2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklKlrcACgkQixf5fBYiFmrF+gCgrYWucNNxC54r0Aur/bi35p1l pDkAoJCtGFrb22VqQDszwkJX+v1n5YrO =o80G -----END PGP SIGNATURE----- --4vpci17Ql0Nrbul2--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081218183015.GH5150>