summaryrefslogtreecommitdiffstats
path: root/etc/daily
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1994-10-30 18:20:58 +0000
committerjoerg <joerg@FreeBSD.org>1994-10-30 18:20:58 +0000
commitcdfef10748f89b56326d1d5d0ef48dddb275a450 (patch)
tree45c23b1a47a22d33a743e7430aa8e2c990f7eede /etc/daily
parent8ef66e7d701e632f9ee9b5370663bfee1a063958 (diff)
downloadFreeBSD-src-cdfef10748f89b56326d1d5d0ef48dddb275a450.zip
FreeBSD-src-cdfef10748f89b56326d1d5d0ef48dddb275a450.tar.gz
daily:
Leave a warning to the sysop if (s)he didn't yet enable the /tmp cleanup code. Made `core' in the cleanup template look `*.core'. Replace `df -k' by `df -k -t local', since the stats for kernfs, procfs etc. are not of much interest, and the inclusion of nfs systems might hang the machine (nor is it a `disk' statistic as the headline's telling). weekly: Modified the locate.updatedb part to work even if there's no database yet; report errors other than `Permission denied' instead of silently ignoring all of them. Added functionality to rebuild the whatis database once a week.
Diffstat (limited to 'etc/daily')
-rw-r--r--etc/daily7
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/daily b/etc/daily
index b306825..8fd820f 100644
--- a/etc/daily
+++ b/etc/daily
@@ -44,10 +44,11 @@ fi
cd /tmp
# This is not safe, you need to decide what is appropriate for your
-# system.
+# system. Leave a warning note for now.
+echo "You did not enable the cleaning of /tmp in /etc/daily!"
#
#find / ! -fstype local -a -prune -o \
-# \( -name '[#,]*' -o -name '.#*' -o -name a.out -o -name core \
+# \( -name '[#,]*' -o -name '.#*' -o -name a.out -o -name *.core \
# -o -name '*.CKP' -o -name '.emacs_[0-9]*' \) \
# -a -atime +3 -exec rm -f -- {} \;
#
@@ -124,7 +125,7 @@ echo ""
echo "Checking subsystem status:"
echo ""
echo "disks:"
-df -k
+df -k -t local
echo ""
dump W
echo ""
OpenPOWER on IntegriCloud