config root man

Current Path : /compat/linux/proc/68247/root/compat/linux/proc/68247/root/compat/linux/proc/68247/root/etc/periodic/daily/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/68247/root/compat/linux/proc/68247/root/compat/linux/proc/68247/root/etc/periodic/daily/470.status-named

#!/bin/sh
#
# $FreeBSD: release/9.1.0/etc/periodic/daily/470.status-named 159525 2006-06-11 20:39:12Z maxim $
#

# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/periodic.conf ]
then
    . /etc/defaults/periodic.conf
    source_periodic_confs
fi

catmsgs() {
	find /var/log -name 'messages.*' -mtime -2 |
	    sort -t. -r -n -k 2,2 |
	    while read f
	    do
		case $f in
		    *.gz)	zcat -f $f;;
		    *.bz2)	bzcat -f $f;;
		esac
	    done
	[ -f /var/log/messages ] && cat /var/log/messages
}

case "$daily_status_named_enable" in
    [Yy][Ee][Ss])
	echo
	echo 'Checking for denied zone transfers (AXFR and IXFR):'

	start=`date -v-1d '+%b %e'`
	rc=$(catmsgs |
	    fgrep -E "^$start.*named\[[[:digit:]]+\]: transfer of .*failed .*: REFUSED" |
	    sed -e "s/.*transfer of \'\(.*\)\/IN\' from \(.*\)#[0-9]*: .*/\1 from \2/" |
	    sort -f | uniq -ic | (
		usedns=0
		case "$daily_status_named_usedns" in
		'') ;;
		[yY][eE][sS]) usedns=1 ;;
		esac

		while read line ;do
			ipaddr=`echo "$line" | sed -e 's/^.*from //'`
			if [ $usedns -eq 1 ]; then
				name=`host "${ipaddr}" 2>/dev/null | \
				   sed 's/.*domain name pointer \(.*\)\./\1/'`
			fi
			if [ -n "${name}" ]; then
				echo "${line} (${name})"
			else
				echo "${line}"
			fi
		done ) | \
		tee /dev/stderr | wc -l)
	[ $rc -gt 0 ] && rc=1
	;;

    *)  rc=0;;
esac

exit $rc

Man Man