Subject: Re: /etc/daily and /scratch
To: David Jones <dej@achilles.net>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 03/26/1996 08:59:13
On Mon, 25 Mar 1996 23:33:09 -0500 (EST)
dej@achilles.net (David Jones) wrote:
> Let's assume that we all agree that /scratch is material of a transient
> nature. The real problem is that the NetBSD core team imposed an
> undocumented policy that overrides whatever policy might have been
> in place. For example, I could...
>
> - delete anything over a week old in /scratch
> - delete everything once a week
> - etc.
>
> This type of policy is not a decision for the core team to make, esp.
> when it is so destructive.
...and I'm not certain that `core' did...Looking at my 4.4BSD /etc/daily:
#!/bin/sh -
#
# @(#)daily 8.2 (Berkeley) 1/25/94
#
[ . . . ]
if [ -d /scratch ]; then
cd /scratch && {
find . ! -name . -atime +1 -exec rm -f -- {} \;
find . ! -name . -type d -mtime +1 -exec rmdir -- {} \; \
>/dev/null 2>&1; }
fi
[ . . . ]
Indeed, it appears that this is "historical" practice that was simply
never *changed* by NetBSD (probably because no one had even mentioned it
before...)
--------------------------------------------------------------------------
Jason R. Thorpe thorpej@nas.nasa.gov
NASA Ames Research Center Home: 408.866.1912
NAS: M/S 258-6 Work: 415.604.0935
Moffett Field, CA 94035 Pager: 415.428.6939