From owner-freebsd-questions@FreeBSD.ORG Thu Dec 18 18:30:20 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E35BB1065674 for ; Thu, 18 Dec 2008 18:30:20 +0000 (UTC) (envelope-from danielby@slightlystrange.org) Received: from mtaout03-winn.ispmail.ntl.com (mtaout03-winn.ispmail.ntl.com [81.103.221.49]) by mx1.freebsd.org (Postfix) with ESMTP id 4C47C8FC1A for ; Thu, 18 Dec 2008 18:30:19 +0000 (UTC) (envelope-from danielby@slightlystrange.org) Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20081218183019.ULKX7670.mtaout03-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com> for ; Thu, 18 Dec 2008 18:30:19 +0000 Received: from catflap.slightlystrange.org ([82.21.101.171]) by aamtaout03-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20081218183019.LAHD2093.aamtaout03-winn.ispmail.ntl.com@catflap.slightlystrange.org> for ; Thu, 18 Dec 2008 18:30:19 +0000 Received: by catflap.slightlystrange.org (Postfix, from userid 106) id B0C6E6136; Thu, 18 Dec 2008 18:30:16 +0000 (GMT) Received: from torus.slightlystrange.org (torus.slightlystrange.org [10.1.3.50]) by catflap.slightlystrange.org (Postfix) with SMTP id E8D726132 for ; Thu, 18 Dec 2008 18:30:15 +0000 (GMT) Received: by torus.slightlystrange.org (sSMTP sendmail emulation); Thu, 18 Dec 2008 18:30:15 +0000 From: "Daniel Bye" Date: Thu, 18 Dec 2008 18:30:15 +0000 To: freebsd-questions@freebsd.org Message-ID: <20081218183015.GH5150@torus.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <7fec743f0812180854o2e66bee2m8369eba789290758@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4vpci17Ql0Nrbul2" Content-Disposition: inline In-Reply-To: <7fec743f0812180854o2e66bee2m8369eba789290758@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-PGP-Fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A X-Operating-System: FreeBSD 7.1-PRERELEASE i386 X-Cloudmark-Analysis: v=1.0 c=1 a=ehNlctqhnw0A:10 a=j5CU4Ib5g3hfEosHVYcA:9 a=mwtU_WnR3FRVEHlAJ4EA:7 a=pKUar9kQ5NUBTfmmTago66LB0fUA:4 a=LY0hPdMaydYA:10 a=lPljsEL5ZaMuGrzMndwA:9 a=uKvq78r5tU_ff0rmxD-qM_xem_YA:4 a=rPt6xJ-oxjAA:10 Subject: Re: /tmp running out of inodes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2008 18:30:21 -0000 --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--