Subject: Re: misc/1919: merging functionality of netstart, etc, into rc
To: None <mouse@Collatz.McRCIM.McGill.EDU, netbsd-bugs@NetBSD.ORG>
From: Olaf Seibert <rhialto@mbfys.kun.nl>
List: netbsd-bugs
Date: 01/11/1996 18:20:46
der Mouse <mouse@Collatz.McRCIM.McGill.EDU> wrote:
> - The "clearing /tmp" code is yanked entirely; this should be done by
>   cron, not rebooting.  (Doing it on reboot cleans out /tmp both too
>   often - essentially, it means /tmp is useless to humans because
>   anything in there may be torched randomly if the machine crashes -
>   and not often enough, because if the box doesn't die it never gets
>   cleaned out.)

The last part is not true, unless somebody changed it after 1.0.
In my (mostly 1.0) /etc/daily I find, right at the top:

echo "Removing scratch and junk files:"
if [ -d /tmp -a ! -h /tmp ]; then
        cd /tmp && {
        find . -type f -atime +7 -exec rm -f -- {} \;
        find . ! -name . -type d -mtime +2 -exec rmdir -- {} \; \
            >/dev/null 2>&1; }
fi

and similar lines for /var/tmp and /scratch.

I did change some atime values here and there so your version may differ
slightly.

-Olaf.
--
___              Copyright 1996 Olaf 'Rhialto' Seibert. All Rights Reserved.
\X/    You are not allowed to read this using any kind of Micro$oft product.