diff options
author | wollman <wollman@FreeBSD.org> | 1999-03-30 15:30:44 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1999-03-30 15:30:44 +0000 |
commit | 4444bea042be78e86ef5eda81889229193bbda48 (patch) | |
tree | d0d187a960fde851f2501816a70486dcd934e302 /etc/periodic | |
parent | c5a96ac8dba51606420c08ddae4d953b4a6009f6 (diff) | |
download | FreeBSD-src-4444bea042be78e86ef5eda81889229193bbda48.zip FreeBSD-src-4444bea042be78e86ef5eda81889229193bbda48.tar.gz |
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.
Diffstat (limited to 'etc/periodic')
-rwxr-xr-x | etc/periodic/daily/150.clean-hoststat | 11 |
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 0000000..423231e --- /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 |