summaryrefslogtreecommitdiffstats
path: root/etc/periodic/daily/140.clean-rwho
diff options
context:
space:
mode:
Diffstat (limited to 'etc/periodic/daily/140.clean-rwho')
-rwxr-xr-xetc/periodic/daily/140.clean-rwho11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/periodic/daily/140.clean-rwho b/etc/periodic/daily/140.clean-rwho
new file mode 100755
index 0000000..3a20dee
--- /dev/null
+++ b/etc/periodic/daily/140.clean-rwho
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# $Id: 140.clean-rwho,v 1.1.1.1 1997/08/12 17:51:15 pst Exp $
+#
+
+if [ -d /var/rwho ] ; then
+ echo ""
+ echo "Removing stale files from /var/rwho"
+ cd /var/rwho && find . ! -name . -mtime +7 -exec rm -f -- {} \;
+fi
+
OpenPOWER on IntegriCloud