5 # Remove stale files in /var/rwho
8 # If there is a global system configuration file, suck it in.
10 if [ -r /etc/defaults/periodic.conf ]
12 . /etc/defaults/periodic.conf
16 case "$daily_clean_rwho_enable" in
18 if [ -z "$daily_clean_rwho_days" ]
20 echo '$daily_clean_rwho_enable is enabled but' \
21 '$daily_clean_rwho_days is not set'
23 elif [ ! -d /var/rwho ]
25 echo '$daily_clean_rwho_enable is enabled but /var/rwho' \
30 echo "Removing stale files from /var/rwho:"
32 case "$daily_clean_rwho_verbose" in
41 rc=$(find . ! -name . -mtime +$daily_clean_rwho_days \
42 -delete $print | tee /dev/stderr | wc -l)
43 [ -z "$print" ] && rc=0