aboutsummaryrefslogtreecommitdiff
path: root/etc/periodic
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1999-03-30 15:30:44 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1999-03-30 15:30:44 +0000
commit960b7106f5db07d38362a989af0c0376d69f09d4 (patch)
treed3140220fdbbb6b780f6f5f863fd31b870e584ce /etc/periodic
parentda3b4fb7ee1ac7f74c26803a010b409fb97613b6 (diff)
downloadsrc-960b7106f5db07d38362a989af0c0376d69f09d4.tar.gz
src-960b7106f5db07d38362a989af0c0376d69f09d4.zip
Clean up persistent host status from sendmail(8) (if so configured).
I had accumulated years' worth of junk files; now others won't have to.
Notes
Notes: svn path=/head/; revision=45153
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/150.clean-hoststat11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/periodic/daily/150.clean-hoststat b/etc/periodic/daily/150.clean-hoststat
new file mode 100755
index 000000000000..423231e8d6b3
--- /dev/null
+++ b/etc/periodic/daily/150.clean-hoststat
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# $Id: 140.clean-rwho,v 1.3 1999/03/21 12:33:54 joerg Exp $
+#
+
+if [ -d /var/spool/.hoststat ] ; then
+ echo ""
+ echo "Removing stale files from /var/spool/.hoststat:"
+
+ cd /var/rwho && find * -mtime +3 -delete
+fi