140.clean-rwho revision 61981
1#!/bin/sh 2# 3# $FreeBSD: head/etc/periodic/daily/140.clean-rwho 61981 2000-06-23 01:18:31Z brian $ 4# 5# Remove stale files in /var/rwho 6# 7 8# If there is a global system configuration file, suck it in. 9# 10if [ -r /etc/defaults/periodic.conf ] 11then 12 . /etc/defaults/periodic.conf 13 source_periodic_confs 14fi 15 16case "$daily_clean_rwho_enable" in 17 [Yy][Ee][Ss]) 18 if [ -n "$daily_clean_rwho_days" -a -d /var/rwho ] 19 then 20 echo "" 21 echo "Removing stale files from /var/rwho:" 22 23 case "$daily_clean_rwho_verbose" in 24 [Yy][Ee][Ss]) 25 print=-print;; 26 *) 27 print=;; 28 esac 29 30 cd /var/rwho && 31 find . ! -name . -mtime +$daily_clean_rwho_days -delete $print 32 fi;; 33esac 34