Return to BSD News archive
Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!cs.utexas.edu!mercury.unt.edu!ponder.csci.unt.edu!jackson
From: jackson@ponder.csci.unt.edu (Bruce Jackson)
Subject: Re: NetBSD /scratch Questions
Message-ID: <1993Nov17.014034.13034@news.unt.edu>
Sender: usenet@news.unt.edu (UNT USENet Adminstrator)
Organization: University of North Texas, Denton
References: <tb75.753384862@sol>
Date: Wed, 17 Nov 1993 01:40:34 GMT
Lines: 39
In article <tb75.753384862@sol>, Wilson Michael S <tb75@sol.acs.unt.edu> wrote:
> I recently installed a new harddrive into my NetBSD .9 system
> and there seems to be a small problem. It seems to be deleting files
> that are older than a few days. From what I understand this is what
> most systems do for /scratch dirs. Well I have started mounting it as
> /work now, but what I wanted to know is where I can enable/disable the
> file deletion stuff. If I am totally off base let me know, for all I
> know mounting it as /work will not do what I want but I am just trying
> it till I get the information.
In the file /etc/daily comment out, delete, or modify the lines:
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
There are also a few other reapers that you may not want so look
around the file. I wasn't crazy about the /scratch reaper. Since it
doesn't ship with a /scratch directory most people would not assume
that a reaper is in place for it. We use /scratch partitions here but
we don't remove files until they are not accessed for +40 days. Users
who were used to our policy were not amused to find all of their files
removed after a couple of days. Luckily I had backups so nobody lost
much work.
>Mike
--
Bruce Jackson | Univ. of North Texas | jackson@cs.unt.edu
UNIX Systems Admin. | P. O. Box 13886 | GAB 550E (817)565-2279
Dept. of Computer Sci.| Denton, Tx. 76203-3886 | FAX: (817)565-2799