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.
This commit is contained in:
parent
da3b4fb7ee
commit
960b7106f5
11
etc/periodic/daily/150.clean-hoststat
Executable file
11
etc/periodic/daily/150.clean-hoststat
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user