From owner-freebsd-questions@FreeBSD.ORG Sun Oct 10 08:40:33 2010 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 41620106566B for ; Sun, 10 Oct 2010 08:40:33 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from relay.pcl-ipout02.plus.net (relay.pcl-ipout02.plus.net [212.159.7.100]) by mx1.freebsd.org (Postfix) with ESMTP id CA5498FC14 for ; Sun, 10 Oct 2010 08:40:32 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiYGAIIYsUxUXebr/2dsb2JhbACUL417cbcuhUgE Received: from outmx07.plus.net ([84.93.230.235]) by relay.pcl-ipout02.plus.net with ESMTP; 10 Oct 2010 09:40:31 +0100 Received: from helix.plus.com ([84.92.153.232] helo=curlew.milibyte.co.uk) by outmx07.plus.net with esmtp (Exim) id 1P4rSI-0005Jj-SX; Sun, 10 Oct 2010 09:40:31 +0100 Received: by curlew.milibyte.co.uk with local (Exim 4.72) (envelope-from ) id 1P4rSH-0000pl-HY; Sun, 10 Oct 2010 09:40:29 +0100 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Sun, 10 Oct 2010 09:40:29 +0100 User-Agent: KMail/1.9.10 References: <4CB0A8A1.5040904@qeng-ho.org> In-Reply-To: <4CB0A8A1.5040904@qeng-ho.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201010100940.29438.jmc-freebsd2@milibyte.co.uk> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-SA-Exim-Scanned: No (on curlew.milibyte.co.uk); SAEximRunCond expanded to false Cc: Caleb Stein , Arthur Chance Subject: Re: Clean up / filesystem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2010 08:40:33 -0000 On Saturday 09 October 2010, Arthur Chance wrote: > Not if running an X desktop, as all sorts of things get stuck in /tmp > that are needed. In single user mode it should be safe, and it > probably is when simply running on the console. > > As a long term solution, if you wish to clear /tmp every reboot add > clear_tmp_enable=3D"YES"=A0=A0# Clear /tmp at startup. > to your /etc/rc.conf Also consider using periodic(8) to do a safe daily cleanup deleting=20 files in /tmp not accessed in the last 3 days. You need to add=20 daily_clean_tmps_enable=3D"YES" to /etc/periodic.conf. If you prefer a=20 different retention period you can set it by adding a line setting=20 daily_clean_tmps_days to the desired value. You can also modify the=20 default list of files to ignore with the variable=20 daily_clean_tmps_ignore =2D-=20 Mike Clarke