From nik@nothing-going-on.demon.co.uk  Wed Apr 12 06:18:35 2000
Return-Path: <nik@nothing-going-on.demon.co.uk>
Received: from nothing-going-on.demon.co.uk (nothing-going-on.demon.co.uk [193.237.89.66])
	by hub.freebsd.org (Postfix) with ESMTP id 4731D37B62A
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 12 Apr 2000 06:18:12 -0700 (PDT)
	(envelope-from nik@nothing-going-on.demon.co.uk)
Received: (from nik@localhost)
	by nothing-going-on.demon.co.uk (8.9.3/8.9.3) id MAA01485;
	Wed, 12 Apr 2000 12:10:14 +0100 (BST)
	(envelope-from nik)
Message-Id: <200004121110.MAA01485@nothing-going-on.demon.co.uk>
Date: Wed, 12 Apr 2000 12:10:14 +0100 (BST)
From: nik@freebsd.org
Sender: nik@nothing-going-on.demon.co.uk
Reply-To: nik@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: upsmon.sh is too chatty on startup
X-Send-Pr-Version: 3.2

>Number:         17949
>Category:       ports
>Synopsis:       upsmon.sh is too chatty on startup
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 12 06:20:01 PDT 2000
>Closed-Date:    Sun Apr 30 12:24:42 PDT 2000
>Last-Modified:  Sun Apr 30 12:25:22 PDT 2000
>Originator:     Nik Clayton
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
N/A
>Environment:

	Ports tree, supped a few hours ago.

>Description:

	The upsmon.sh installed by the sysutils/upsmon port is too chatty
        at startup.  Specifically, upsmond prints some output about it's
        configuration, which disturbs the nice, regular output at system
        startup.

>How-To-Repeat:

        # sh /usr/local/etc/rc.d/upsmon.sh
        PortName set to: /dev/cuaa0
         upsmond#

        Ideally, only the " upsmond" should print.
     
>Fix:
	
	Apply this patch to files/upsmond.sh

--- upsmon.sh.old       Wed Apr 12 12:03:45 2000
+++ upsmon.sh   Wed Apr 12 12:04:10 2000
@@ -3,5 +3,5 @@
 # see !!PREFIX!!/share/doc/upsmon/INSTALL for command line option details
 
 if [ -x !!PREFIX!!/sbin/upsmond ]; then
-	!!PREFIX!!/sbin/upsmond -p /dev/cuaa0 && echo -n ' upsmond'
+	!!PREFIX!!/sbin/upsmond -p /dev/cuaa0 2>&1 > /dev/null && echo -n ' upsmond'
 fi

	If no one complains, I'll commit it myself (post ports freeze)

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun Apr 30 12:24:42 PDT 2000 
State-Changed-Why:  
Committed, thanks! 
>Unformatted:
