Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Oct 2010 09:40:29 +0100
From:      Mike Clarke <jmc-freebsd2@milibyte.co.uk>
To:        freebsd-questions@freebsd.org
Cc:        Caleb Stein <caleb.stein@me.com>, Arthur Chance <freebsd@qeng-ho.org>
Subject:   Re: Clean up / filesystem
Message-ID:  <201010100940.29438.jmc-freebsd2@milibyte.co.uk>
In-Reply-To: <4CB0A8A1.5040904@qeng-ho.org>
References:  <op.vkakpz1j0i70i3@win7x64.mshome.net> <op.vkbisimcesa1c5@win7x64.mshome.net> <4CB0A8A1.5040904@qeng-ho.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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