Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jun 2000 16:00:45 -0400 (EDT)
From:      howardjp@wam.umd.edu
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   conf/19587: [PATCH] 'Nother bug in periodic scripts
Message-ID:  <200006292000.QAA01615@byzantine.student.umd.edu>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006292000.QAA01615>