1#!/bin/sh 2# 3# cleanup pass on all mounted hammer2 filesystems 4 5# If there is a global system configuration file, suck it in. 6# 7if [ -r /etc/defaults/periodic.conf ] 8then 9 . /etc/defaults/periodic.conf 10 source_periodic_confs 11fi 12 13case "$daily_clean_hammer2_enable" in 14 [Yy][Ee][Ss]) 15 echo "" 16 echo "HAMMER2 maintenance:" 17 case "$daily_clean_hammer2_verbose" in 18 [Yy][Ee][Ss]) 19 verbose=-v;; 20 *) 21 verbose=;; 22 esac 23 24 /usr/bin/lockf -k -t 0 /var/run/.daily.161.lck \ 25 hammer2 $verbose cleanup $daily_clean_hammer2_pfslist && rc=0;; 26 27 *) rc=0;; 28esac 29 30exit $rc 31