From owner-freebsd-bugs Sun Sep 15 6:20: 7 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBE1737B400 for ; Sun, 15 Sep 2002 06:20:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B65F43E65 for ; Sun, 15 Sep 2002 06:20:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g8FDK4JU053169 for ; Sun, 15 Sep 2002 06:20:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8FDK4uC053168; Sun, 15 Sep 2002 06:20:04 -0700 (PDT) Date: Sun, 15 Sep 2002 06:20:04 -0700 (PDT) Message-Id: <200209151320.g8FDK4uC053168@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Valentin Nechayev Subject: Re: conf/41570: Sendmail hoststat cleaning error Reply-To: Valentin Nechayev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/41570; it has been noted by GNATS. From: Valentin Nechayev To: Alex Vasylenko Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: conf/41570: Sendmail hoststat cleaning error Date: Sun, 15 Sep 2002 16:13:25 +0300 Thu, Sep 05, 2002 at 16:50:04, lxv (Alex Vasylenko) wrote about "Re: conf/41570: Sendmail hoststat cleaning error": AV> HostStatusDirectory is a configurable option in sendmail, AV> so 150.clean-hoststat shouldn't blindly expect it to AV> be /var/spool/.hoststat, besides HostStatusDirectory is AV> relative to /var/spool/mqueue. At all I can't see a need to such procedure, including find ... -delete, because sendmail has working implementation of hoststat base purging. Run `purgestat' or `sendmail -bH'. Thus, version I recommend is following (I'm not familiar with script return codes, hence fix what is wrong): === cut === #!/bin/sh # # $FreeBSD: src/etc/periodic/daily/150.clean-hoststat,v 1.3.2.2 2000/09/20 02:46:15 jkh Exp $ # # Remove stale files in /var/spool/.hoststat # # 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 case "$daily_clean_hoststat_enable" in [Yy][Ee][Ss]) /usr/sbin/sendmail -bH rc=$? [ $rc -gt 1 ] && rc=1 ;; *) rc=0;; esac exit $rc === end cut === /netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message