From owner-freebsd-stable Fri Dec 15 11: 8:56 2000 From owner-freebsd-stable@FreeBSD.ORG Fri Dec 15 11:08:52 2000 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from ssabsd.csw.net (ssabsd.csw.net [209.136.201.12]) by hub.freebsd.org (Postfix) with ESMTP id 5084537B400 for ; Fri, 15 Dec 2000 11:08:52 -0800 (PST) Received: by ssabsd.csw.net (Postfix, from userid 1002) id 6E5F613; Fri, 15 Dec 2000 13:08:51 -0600 (CST) Date: Fri, 15 Dec 2000 13:08:51 -0600 From: Scott Lambert To: freebsd-stable@freebsd.org Subject: /etc/periodic.conf daily_status_mailq_shorten="YES" broken? Message-ID: <20001215130851.A44717@ssabsd.csw.net> Reply-To: freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: lambert@ssabsd.csw.net Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I'm not seeing any output from /etc/periodic/daily/440.status-mailq (v. 1.4.2.2) when I try to use the short form output by specifying daily_status_mailq_shorten="YES" in /etc/periodic.conf Maybe I'm not holding my mouth right. It wouldn't be the first time. Anyway, I "fixed" it to give me some actual output and to be configurable for how many messages to a unique addresses are required before it will output that line. This is probably the wrong fix, but it's the best I know how to do. Diffs are attached. -- Scott Lambert lambert@cswnet.com --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="440.status-mailq.diff" *** 440.status-mailq.orig Fri Dec 15 10:36:47 2000 --- 440.status-mailq Fri Dec 15 10:41:50 2000 *************** *** 34,40 **** sort | uniq -c | sort -nr | ! awk '$1 > 1 {print $1, $2}');; *) mailq;; esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l) --- 34,41 ---- sort | uniq -c | sort -nr | ! awk "\$1 > $daily_mailq_shorten_min {print \$1, \$2}"); ! echo "$rc";; *) mailq;; esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l) --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="periodic.conf.diff" *** periodic.conf.dist Fri Dec 15 12:47:52 2000 --- periodic.conf Fri Dec 15 12:49:45 2000 *************** *** 106,111 **** --- 106,114 ---- # 440.status-mailq daily_status_mailq_enable="YES" # Check mail status daily_status_mailq_shorten="NO" # Shorten output + daily_mailq_shorten_min=1 # Number of uniq addrs + # in output must be > + # this number # 450.status-security daily_status_security_enable="YES" # Security check --lrZ03NoBR/3+SXJZ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message