Re: How to convert /tmp to memfs after install

From: Bela Lubkin (filbo_at_armory.com)
Date: 10/19/05


Date: 18 Oct 2005 18:01:17 -0400


Jean-Pierre Radley wrote:

> Steve M. Fabac, Jr. typed (on Tue, Oct 18, 2005 at 05:24:56AM +0000):
> | The point on vi is valid, but I don't have a single client that
> | uses vi except when I am guiding them over the phone to resolve
> | some issue. So that's a non issue.
> |
> | People leaving things in /tmp should not expect them to remain
> | there as /usr/lib/cleantmp is scanning /tmp weekly to remove
> | old files. Except-- on systems with Backup Edge installed:
> | Backup Edge with default simple_job is resetting the access
> | time of all the files on a system every time it performs a
> | scheduled backup. Therefore cleantemp never removes files
> | from /tmp and /usr/tmp.
> |
> | I had to enable advance scheduling in Backup Edge and edit
> | the "domain" specification to change "preserve atime [N]"
> | to "Y" and change Diff/Incremental level from "2" to "1"
> | to stop Backup Edge from resetting the access time on each backup.
>
> That's one solution; another is to edit line 85 of /usr/lib/cleantmp:
> s/atime/mtime/

It's that way for a reason. There are many utilities that create files
in /tmp and continue to use them for their entire runtime, but don't
modify them very often. If `cleantmp` operates on mtime, those
utilities lose.

>Bela<