summaryrefslogtreecommitdiffstats
path: root/etc/daily
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-01-05 10:15:53 +0000
committerdg <dg@FreeBSD.org>1995-01-05 10:15:53 +0000
commit2b79dbc43d29cab2e16e65af16849c5b0cb4b403 (patch)
tree736e9d57c0be249b13a76fb30fc42a6b621f36ec /etc/daily
parent531b660987d3bec46d16c1d90db1711f65b2df91 (diff)
downloadFreeBSD-src-2b79dbc43d29cab2e16e65af16849c5b0cb4b403.zip
FreeBSD-src-2b79dbc43d29cab2e16e65af16849c5b0cb4b403.tar.gz
Removed daily rm'ing of files in /tmp, /var/tmp, and /scratch. There is no
safe way to do this, and envites very unpleasant results. Removed fsck'ing of all the disks on the system as it provides output that is almost always meaningless and only envites bug reports. Reviewed by: Jordan Hubbard
Diffstat (limited to 'etc/daily')
-rw-r--r--etc/daily27
1 files changed, 0 insertions, 27 deletions
diff --git a/etc/daily b/etc/daily
index 43444bc..95810ff 100644
--- a/etc/daily
+++ b/etc/daily
@@ -9,29 +9,6 @@ bak=/var/backups
echo ""
echo "Removing scratch and junk files:"
-if [ -d /tmp ]; then
- cd /tmp && {
- find . -type f -atime +3 -exec rm -f -- {} \;
- find . ! -name . -type d -mtime +1 -exec rmdir -- {} \; \
- >/dev/null 2>&1; }
-fi
-
-if [ -d /var/tmp ]; then
- cd /var/tmp && {
- find . ! -name . -atime +7 -exec rm -f -- {} \;
- find . ! -name . -type d -mtime +1 -exec rmdir -- {} \; \
- >/dev/null 2>&1; }
-fi
-
-if [ -d /scratch ]; then
- cd /scratch && {
- find . ! -name . ! -fstype local -a -prune -o \
- -atime +1 -exec rm -f -- {} \;
- find . ! -name . ! -fstype local -a -prune -o \
- -type d -mtime +1 -exec rmdir -- {} \; \
- >/dev/null 2>&1; }
-fi
-
if [ -d /var/preserve ]; then
cd /var/preserve && {
find . ! -name . -mtime +7 -exec rm -f -- {} \; ; }
@@ -148,10 +125,6 @@ echo ""
ruptime
echo ""
-echo "Checking filesystems:"
-fsck -n | grep -v '^\*\* Phase'
-
-echo ""
if [ -f /etc/Distfile ]; then
echo "Running rdist:"
rdist -f /etc/Distfile
OpenPOWER on IntegriCloud