aboutsummaryrefslogtreecommitdiff
path: root/etc/periodic
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2013-11-05 09:30:06 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2013-11-05 09:30:06 +0000
commit3e0f3c1e42683c00f49cc2fc0a933b52f26806eb (patch)
treeccb4e67693f97b2d4c3763b95e258db5986a2dbd /etc/periodic
parentfe9bfbcf5a49ab2287336f81e5d64302c028ca6d (diff)
downloadsrc-3e0f3c1e42683c00f49cc2fc0a933b52f26806eb.tar.gz
src-3e0f3c1e42683c00f49cc2fc0a933b52f26806eb.zip
Remove remnants of BIND from /etc, since there is no BIND in base now.
Sorry, that would break users running head and BIND from ports, since ports rely on these scripts. The ports will be fixed soon. Reviewed by: erwin
Notes
Notes: svn path=/head/; revision=257694
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/470.status-named62
1 files changed, 0 insertions, 62 deletions
diff --git a/etc/periodic/daily/470.status-named b/etc/periodic/daily/470.status-named
deleted file mode 100755
index 987029e5c4f6..000000000000
--- a/etc/periodic/daily/470.status-named
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# 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