Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Apr 2000 12:10:14 +0100 (BST)
From:      nik@freebsd.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/17949: upsmon.sh is too chatty on startup
Message-ID:  <200004121110.MAA01485@nothing-going-on.demon.co.uk>

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

>Number:         17949
>Category:       ports
>Synopsis:       upsmon.sh is too chatty on startup
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 12 06:20:01 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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