From owner-freebsd-bugs Thu Jun 29 13:10: 7 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id CE11837C0E8 for ; Thu, 29 Jun 2000 13:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id NAA58612; Thu, 29 Jun 2000 13:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from byzantine.student.umd.edu (byzantine.student.umd.edu [129.2.228.41]) by hub.freebsd.org (Postfix) with ESMTP id 6E78537C16C for ; Thu, 29 Jun 2000 13:00:47 -0700 (PDT) (envelope-from howardjp@byzantine.student.umd.edu) Received: (from howardjp@localhost) by byzantine.student.umd.edu (8.9.3/8.9.3) id QAA01615; Thu, 29 Jun 2000 16:00:45 -0400 (EDT) (envelope-from howardjp) Message-Id: <200006292000.QAA01615@byzantine.student.umd.edu> Date: Thu, 29 Jun 2000 16:00:45 -0400 (EDT) From: howardjp@wam.umd.edu Reply-To: howardjp@wam.umd.edu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: conf/19587: [PATCH] 'Nother bug in periodic scripts Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19587 >Category: conf >Synopsis: [PATCH] 'Nother bug in periodic scripts >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 29 13:10:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: James Howard >Release: FreeBSD 5.0-CURRENT i386 >Organization: University of Maryland >Environment: FreeBSD byzantine.student.umd.edu 5.0-CURRENT FreeBSD 5.0-CURRENT #15: Sun Jun 18 21:23:23 EDT 2000 howardjp@byzantine.student.umd.edu:/usr/src/sys/compile/BYZANTINE i386 >Description: This may not be a bug, but the etc/periodic/daily/460.status-mail-rejects only checks the two most recent log files for problems. If someone has a busy mail server and rotates the logs more often than once a day, they will miss notifications. Also (and this may seem like a non-issue), the script is less portable this way. The patch below should correct this. >How-To-Repeat: N/A >Fix: --- 460.status-mail-rejects.orig Thu Jun 29 15:42:10 2000 +++ 460.status-mail-rejects Thu Jun 29 15:42:42 2000 @@ -8,7 +8,7 @@ echo Checking for rejected mail hosts: start=`date -v-1d '+%b %d' | sed 's/0\(.\)$/ \1/'` - zcat -fc /var/log/maillog.0* /var/log/maillog | grep reject= | + zcat -fc /var/log/maillog.* /var/log/maillog | grep reject= | perl -ne "print \"\$2\n\" if /^$start.*ruleset=check_\S+,\s+arg1=(<[^@]+@)?([^>,]+).*reject=/o;" | sort | uniq -c | sort -nr >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message